我們有一個使用Visual Studio Isolated Shell 2013的應用程序。安裝應用程序時,我們清除註冊表以刪除舊版本。但是從首次在Windows 7機器上的應用程序時,該應用程序是死鎖定在試圖加載Visual Studio設置:加載或重置用戶設置時,Visual Studio(孤立外殼)掛起
殺死進程,並重新啓動應用程序後,設置完全恢復並且應用程序運行良好,但在首次啓動時終止進程的必要性對最終用戶來說是不可接受的。
如果您只是通過Tools -> Import and Export Settings -> Reset settings
重置設置,則會發生相同的行爲。
發生這種情況時,我看到在輸出日誌中的以下例外,但我不能告訴,如果它實際上是相關的:
First-chance exception at 0x75c0c42d (KernelBase.dll) in MyApp.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x002b7604.
First-chance exception at 0x75c0c42d (KernelBase.dll) in MyApp.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.dll
我們試圖刪除所有相關的條目在磁盤上的註冊表和目錄(例如Users/me/AppData/[Local | Roaming] ...)中,但我們看不到任何更改。 任何想法如何防止掛起Visual Studio?