我们有一个使用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?