2016-01-18 55 views
0

我們有一個使用Visual Studio Isolated Shell 2013的應用程序。安裝應用程序時,我們清除註冊表以刪除舊版本。但是從首次在Windows 7機器上的應用程序時,該應用程序是死鎖定在試圖加載Visual Studio設置:加載或重置用戶設置時,Visual Studio(孤立外殼)掛起

enter image description here

殺死進程,並重新啓動應用程序後,設置完全恢復並且應用程序運行良好,但在首次啓動時終止進程的必要性對最終用戶來說是不可接受的。

如果您只是通過Tools -> Import and Export Settings -> Reset settings重置設置,則會發生相同的行爲。

enter image description here

發生這種情況時,我看到在輸出日誌中的以下例外,但我不能告訴,如果它實際上是相關的:

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?

回答

0

我們發現了這個問題。這是我們爲用戶創建配置時導出的特定設置。在我們的情況下,它是工具箱:

enter image description here

只要我們刪除從我們設置此項,進口和復位工作的罰款。請注意,如果您在應用程序中遇到麻煩,則可能是另一種設置。對我們來說,我只是嘗試了不同的出口星座,並試圖找出哪一個導致了錯誤。