Error in FxCop Phoenix analysis engine

≡放荡痞女 提交于 2019-12-04 07:33:24
Christian.K

Searching the Internet for the "Phx.FatalError" error, I found this blog post, in which the author basically says that doing a

regsrv32.exe msdia100.dll

(so apparently for VS2010 in his case), fixed the problem for him.

That lead me to the necessary hint what could have been the reason for the error on my machine.

I messed around on my DEV box with the Visual Studio Standalone Profiler setup [1]. I installed the profiling tools, that causes the contents of %ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Team Tools\Performance Tools (from the original VS installation) to be replaced, which I was not aware of at the time. However, said setup also creates (or replaces) the %ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\msdia120.dll file. That file is a COM server and is registered during setup (of Visual Studio or the Standalone Profiler package), which I also was not aware of.

Naturally, an uninstall of said Standalone Profiler package, uninstalls the files from the above directories and also unregisters msdia1xx.dll.

So, in my case the easiest fix was to reinstall in the Standalone Profiler package (x64 in my case) and everything worked again.

You might also be successful with just (re)registering your version of msdia1xx.dll [may need to be run as administrator]:

For Visual Studio 2010:

regsvr32 "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\msdia100.dll"

For Visual Studio 2012:

regsvr32 "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\msdia110.dll"

For Visual Studio 2013:

regsvr32 "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\msdia120.dll"

For Visual Studio 2015:

regsvr32 "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\msdia140.dll"

[1] Located on your VS installation media under <drive>:\Standalone Profiler or in your VS installation directory %ProgramFiles(x86)%\Microsoft Visual Studio <version>\Team Tools\Performance Tools\Setup.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!