我一直在尝试从 VS Pro 2019 升级到 VS Pro 2022,最终我设法卸载了旧版本,而新版本在安装时崩溃了。
dd_installer_XXX.log 文件以以下异常结束:
[3cb0:0004][2021-12-03T17:23:35] Telemetry property vs.willow.processtype : ui
[3cb0:0001][2021-12-03T17:23:36] Adding Install Log to Watson=C:\Users\***\AppData\Local\Temp\dd_installer_20211203172335.log
[3cb0:0001][2021-12-03T17:23:38] Error 0x57f50000: Unhandled exception has occurred: System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x57f50000)
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
到目前为止,我已经尝试应用所有可用的 Windows 更新,现在我使用的是 Win 10 版本 20H2 OS Build 19042.1387。我还尝试卸载所有 Visual Studio 组件并从程序文件目录中删除 Microsoft Visual Studio 文件夹,然后再运行 InstallCleanup.exe。该设备是联想 ThinkPad T480。
有没有其他人遇到过这样的问题并能够解决它们?我的下一个停靠点是询问服务台是否可以在安装过程中禁用 McAfee,因为这是我不太信任的软件...