Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2022 throws project loading exception after creating a new bundle project #68

Open
MarioLeung opened this issue Jul 22, 2024 · 0 comments
Labels
triage To be reviewed by FireGiant

Comments

@MarioLeung
Copy link

HeatWave Version

1.0.4.5

Visual Studio Version

17.8.0

Repro Steps

  1. Open VS 2022 and choose creating new WiX bundle project in a new solution folder
  2. A new solution and a new project is created, "WixToolset.Bal.wixext" is using the latest version (5.0.1)
  3. Wait for a few second.

Actual Result

VS 2022 throws the following error:
Visual Studio ran into an unexpected problem with one or more projects. You may need to reload affected projects or the solution to prevent further problems. Open log file Reload faulted project(s).

The details are shown below

=====================
22 Jul 2024 8:24:35 am
LimitedFunctionality
System.AggregateException: Project system data flow 'AssetsFileDependenciesDataSource: 41945943' closed because of an exception.
Activating the "Microsoft.VisualStudio.NuGet.NuGetProjectService (1.0)" service failed.
---> (Inner Exception #0) Microsoft.ServiceHub.Framework.ServiceActivationFailedException: Activating the "Microsoft.VisualStudio.NuGet.NuGetProjectService (1.0)" service failed.
   at Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View.<GetProxyAsync>d__19`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at FireGiant.HeatWave.ProjectSystem.SolutionExplorer.Dependencies.AssetsFileDependenciesDataSource.<>c.<<-ctor>b__3_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass16_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at FireGiant.Utility.AsyncLazyExtensions.GetValue[T](AsyncLazy`1 lazy, JoinableTaskFactory joinableTaskFactory, CancellationToken cancellationToken) in D:\a\1\s\src\FireGiant.Common\src\FireGiant.Utility\AsyncLazyExtensions.cs:line 22
   at FireGiant.HeatWave.ProjectSystem.SolutionExplorer.Dependencies.AssetsFileDependenciesDataSource.<>c__DisplayClass4_0.<LinkExternalInput>g__Transform|1(IProjectVersionedValue`1 update)
   at Microsoft.VisualStudio.ProjectSystem.TransformBlockSlim`2.TransformBlockSlimSync.ProcessInputAsync(TInput input)
   at Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim`1.<ProcessInputQueueAsync>d__5.MoveNext()
---> System.InvalidCastException: Unable to cast object of type 'NuGet.VisualStudio.Implementation.Extensibility.NuGetProjectService' to type 'NuGet.VisualStudio.Contracts.INuGetProjectService'.
   at Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.ProfferedServiceFactory.<GetProxyAsync>d__30`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View.<GetProxyAsync>d__19`1.MoveNext()
--- End of inner exception stack trace ---
<--- (Inner Exception #0) 
===================

Expected Result

No exception should be thrown when creating new projects

@MarioLeung MarioLeung added the triage To be reviewed by FireGiant label Jul 22, 2024
@MarioLeung MarioLeung changed the title VS2022 throws exeption on loading bundle project VS2022 throws exeption on creating a bundle project Jul 22, 2024
@MarioLeung MarioLeung changed the title VS2022 throws exeption on creating a bundle project VS2022 throws project loading exception after creating a new bundle project Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage To be reviewed by FireGiant
Projects
None yet
Development

No branches or pull requests

1 participant