2016-01-18 20 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

只要我们删除从我们设置此项,进口和复位工作的罚款。请注意,如果您在应用程序中遇到麻烦,则可能是另一种设置。对我们来说,我只是尝试了不同的出口星座,并试图找出哪一个导致了错误。