Jimmy Mattsson Jimmy Mattsson - 17 days ago 10
ASP.NET (C#) Question

Unable to load DLL 'VSPerf110.dll'

When I publish my web application and have

Precompile during publishing
checked I get this error on my webserver:


Unable to load DLL 'VSPerf110.dll': The specified module could not be
found. (Exception from HRESULT: 0x8007007E)


The application works if I don't Precompile. How can I fix this?

Here's my settings for publishing:

Publish with precompile

Answer

OK it sounds like this application is trying to make use of the Profiler API on the production server. There may be some performance tracking Profile code in this application that may need to be commented out or removed.

Per this MSDN documentation on the Profileer API for VS 2012, "Your build must reference the Microsoft.VisualStudio.Profiler.dll library, located in the Microsoft Visual Studio 9\Team Tools\Performance Tools directory."

http://msdn.microsoft.com/en-us/library/bb514149(v=vs.110).aspx