visual-studio - Visual Studio 安装程序无法运行
问题描述
Visual Studio 安装程序将不会运行。
首先是尝试从 Visual Studio 安装附加功能。然后从开始菜单运行 Visual Studio 安装程序。然后删除安装程序目录并尝试从新的 VS 在线安装程序运行它。
这是日志中的错误消息
Error 0x80131501: Application failed with an uncaught exception: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at Microsoft.VisualStudio.Setup.Installer.Views.ThemedWindow..ctor(AppInitializerServiceOptions serviceOptions, IApplicationViewModel vm, Nullable`1 parentHandle)
at Microsoft.VisualStudio.Setup.Installer.FocusedUi.Views.FocusedWindow..ctor(AppInitializerServiceOptions serviceOptions, IApplicationViewModel vm, Nullable`1 parentHandle)
at Microsoft.VisualStudio.Setup.Installer.Application.WindowFactory.Create(IInstallerCommandLineOptions commandLineOptions, AppInitializerServiceOptions serviceOptions, IApplicationViewModel viewModel)
at Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.InitializeWindow(AppInitializerServiceOptions serviceOptions, IInstallerCommandLineOptions commandLineOptions, IApplicationViewModel viewModel)
at Microsoft.VisualStudio.Setup.Installer.Application.ApplicationBase.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.Microsoft.VisualStudio.Setup.Installer.IApplication.Run()
at Microsoft.VisualStudio.Setup.Installer.Program.ExecuteInternal(IServiceContainer services, ICommandLineParserResult`1 parserResult, ITelemetry telemetry, ILogger logger)
解决方案
推荐阅读
- apache-spark - 写入外部 Hive 表时的 Spark 压缩
- java - Java并发 - 线程未完成循环
- symfony - 没有斜杠的 Twig 命名空间路径在本地计算机(Mac)上有效,但在服务器上无效
- java - List的Hibernate映射
“不是实体” - c# - 在 IASyncResult 中为 Ping 捕获异常
- c++ - 将长数组转换为 const char*
- java - 如何动态地从数据表中检索数据?
- javascript - 如何通过属性的值在 JSON 数组中累积值?
- liquid-xml - 使用 Liquid Data Mapper 将 XML 转换为带有数据头的 CSV
- pike - 列出 Pike 中某个类的所有成员