【问题标题】:Visual Studio Bugs after Windows Update - example Manage User Secrets disappearedWindows 更新后的 Visual Studio 错误 - 示例管理用户机密消失了
【发布时间】:2022-01-10 21:19:11
【问题描述】:

Windows 安装了更新,我的 Windows 变成了 Windows 11,但是我在使用 Visual Studio 时遇到了几个问题,当 Visual Studios 启动时,顶部会显示两条错误消息,另外,管理用户机密从上下文菜单中消失了。

有什么建议吗?暂时我会冒险在应用程序设置中添加我的连接字符串。

您可以在下面找到错误日志之一:

'''

2021 年 5 月 12 日 10:25:45 可恢复 System.AggregateException: 项目系统数据流 'DataflowBlockSlim (ActionBlockSlimAsync1 : 61833216)' closed because of an exception: System.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: An attempt was made to import a component of type 'Microsoft.WebTools.Shared.VS.Contracts.IBrowserLaunchService' from the global scope, but no such export could be found. at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.GetExportsForParameter(ParameterInfo parameter, IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass14_01.b__3(ParameterInfo 参数) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.CreateImplementationTypeFromContext[TExportedType](IScopedExportsContext 上下文,类型 implementationType) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.c__DisplayClass10_01.<RegisterAttributedExport>b__0(IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass9_01.b__1() 在 System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 在 System.Lazy1.get_Value() at Microsoft.VisualStudio.Containers.Tools.Common.CommonScopedExports.get_BrowserServiceExport() at Microsoft.VisualStudio.Containers.Tools.Package.Exports.get_BrowserService() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Microsoft.VisualStudio.Composition.ExportProvider.GetValueFromMember(Object exportingPart, MemberInfo exportingMember, Type importingSiteElementType, Type exportedValueType) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func3lazyFactory) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker,RuntimeImport 导入) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.b__11_0(RuntimeImport 导入) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.c__DisplayClass15_0.b__0() 在 Microsoft.VisualStudio.Composition.DelegateServices.c__DisplayClass2_01.<As>b__0() at System.Lazy1.CreateValue() 在 System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.GetLaunchTargetsProvider(ILaunchProfile 配置文件) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.d__8.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d__14.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.c__DisplayClass14_0.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim1.<ProcessInputQueueAsync>d__5.MoveNext() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: An attempt was made to import a component of type 'Microsoft.WebTools.Shared.VS.Contracts.IBrowserLaunchService' from the global scope, but no such export could be found. at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.GetExportsForParameter(ParameterInfo parameter, IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass14_01.b__3(ParameterInfo 参数) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.CreateImplementationTypeFromContext[TExportedType](IScopedExportsContext 上下文,类型 implementationType) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.c__DisplayClass10_01.<RegisterAttributedExport>b__0(IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass9_01.b__1() 在 System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 在 System.Lazy1.get_Value() at Microsoft.VisualStudio.Containers.Tools.Common.CommonScopedExports.get_BrowserServiceExport() at Microsoft.VisualStudio.Containers.Tools.Package.Exports.get_BrowserService() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Microsoft.VisualStudio.Composition.ExportProvider.GetValueFromMember(Object exportingPart, MemberInfo exportingMember, Type importingSiteElementType, Type exportedValueType) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func3lazyFactory) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker,RuntimeImport 导入) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.b__11_0(RuntimeImport 导入) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.c__DisplayClass15_0.b__0() 在 Microsoft.VisualStudio.Composition.DelegateServices.c__DisplayClass2_01.<As>b__0() at System.Lazy1.CreateValue() 在 System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.GetLaunchTargetsProvider(ILaunchProfile 配置文件) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.d__8.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d__14.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.c__DisplayClass14_0.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim1.<ProcessInputQueueAsync>d__5.MoveNext()<--- . ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: An attempt was made to import a component of type 'Microsoft.WebTools.Shared.VS.Contracts.IBrowserLaunchService' from the global scope, but no such export could be found. at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.GetExportsForParameter(ParameterInfo parameter, IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass14_01.b__3(ParameterInfo 参数) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.CreateImplementationTypeFromContext[TExportedType](IScopedExportsContext 上下文,类型 implementationType) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.c__DisplayClass10_01.<RegisterAttributedExport>b__0(IScopedExportsContext context) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass9_01.b__1() 在 System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 在 System.Lazy1.get_Value() at Microsoft.VisualStudio.Containers.Tools.Common.CommonScopedExports.get_BrowserServiceExport() at Microsoft.VisualStudio.Containers.Tools.Package.Exports.get_BrowserService() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Microsoft.VisualStudio.Composition.ExportProvider.GetValueFromMember(Object exportingPart, MemberInfo exportingMember, Type importingSiteElementType, Type exportedValueType) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func3lazyFactory) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker,RuntimeImport 导入) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.b__11_0(RuntimeImport 导入) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 源) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) 在 Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.c__DisplayClass15_0.b__0() 在 Microsoft.VisualStudio.Composition.DelegateServices.c__DisplayClass2_01.<As>b__0() at System.Lazy1.CreateValue() 在 System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.GetLaunchTargetsProvider(ILaunchProfile 配置文件) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.d__8.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d__14.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.c__DisplayClass14_0.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim1.<ProcessInputQueueAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.Rethrow(Exception ex) at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass6_0.<SubmitErrorReport>b__0() at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass2_0.<Guard>g__Action|0() at GuardMethodClass.GuardMethod(Func1,Func2 , Func2) --- 内部异常堆栈跟踪结束 --- ---> (Inner Exception #0) System.Reflection.TargetInvocationException: 异常已被调用的目标抛出。 ---> System.InvalidOperationException:尝试从全局范围导入“Microsoft.WebTools.Shared.VS.Contracts.IBrowserLaunchService”类型的组件,但找不到此类导出。 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.GetExportsForParameter(ParameterInfo 参数,IScopedExportsContext 上下文) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.c__DisplayClass14_01.<CreateImplementationTypeFromContext>b__3(ParameterInfo parameter) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() 在 System.Linq.Buffer1..ctor(IEnumerable1 源) 在 System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.CreateImplementationTypeFromContext[TExportedType](IScopedExportsContext context, Type implementationType) at Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.<>c__DisplayClass10_01.b__0(IScopedExportsContext 上下文) 在 Microsoft.VisualStudio.Containers.Tools.Common.ScopedExports.c__DisplayClass9_01.<RegisterExport>b__1() at System.Lazy1.CreateValue() 在 System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() 在 Microsoft.VisualStudio.Containers.Tools.Common.CommonScopedExports.get_BrowserServiceExport() 在 Microsoft.VisualStudio.Containers.Tools.Package.Exports.get_BrowserService() --- 内部异常堆栈跟踪结束 --- 在 System.RuntimeMethodHandle.InvokeMethod(对象目标,对象 [] 参数,签名 sig,布尔构造函数) 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(对象 obj,对象 [] 参数,对象 [] 参数) 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object[] 参数,CultureInfo 文化) 在 System.Reflection.RuntimePropertyInfo.GetValue(Object obj,BindingFlags invokeAttr,Binder binder,Object[] index,CultureInfo 文化) 在 System.Reflection.RuntimePropertyInfo.GetValue(对象 obj,对象 [] 索引) 在 Microsoft.VisualStudio.Composition.ExportProvider.GetValueFromMember(对象 exportingPart,MemberInfo exportingMember,类型 importingSiteElementType,类型exportedValueType) 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.c__DisplayClass15_0.b__0() 在 Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker,RuntimeImport 导入,RuntimeExport 导出,Func3 lazyFactory) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.<CreateValue>b__11_0(RuntimeImport import) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() 在 System.Linq.Buffer1..ctor(IEnumerable1 源) 在 System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0() at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_01.b__0() 在 System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 在 System.Lazy1.get_Value() at Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.GetLaunchTargetsProvider(ILaunchProfile profile) at Microsoft.VisualStudio.ProjectSystem.VS.Debug.LaunchProfilesDebugLaunchProvider.<CanBeStartupProjectAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.<IsDebuggableAsync>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ProjectSystem.VS.Debug.StartupProjectRegistrar.<<OnProjectChangedAsync>b__13_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.<>c__DisplayClass14_0.<<LoadedProjectAsync>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim1.d__5.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.Rethrow(异常前) 在 Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.c__DisplayClass6_0.b__0() 在 Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.c__DisplayClass2_0.g__Action|0() 在 GuardMethodClass.GuardMethod(Func1 , Func2 , Func`2 )

====================

'''

【问题讨论】:

  • 你提交给微软了吗?
  • 我在一个开发者社区论坛上做过,但不确定我是否使用了正确的渠道进行报告。你会建议最好的频道吗?
  • 我注意到另一个问题,我无法运行/调试应用程序。显示错误消息“调用目标已引发异常”
  • 谢谢汉斯。我会看看。顺便说一句,共享的链接正是我面临的另一个问题。

标签: c# .net windows visual-studio


【解决方案1】:

Hans Passant 在 cmets 中提供的The link 解决了我的问题。

总之,我必须从安装中删除 LiveShare。

这是通过运行 Visual Studio 安装程序完成的
-> 选项修改
-> 禁用 Live Share 组件。

【讨论】:

  • 嗨@Ricardo,很高兴知道您找到了解决此问题的解决方案!请考虑接受它作为答案以将其状态更改为已回答。见can I answer my own question..,只是一个提醒:)
猜你喜欢
  • 2018-04-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-02
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多