When I publish my web application and have Precompile during publishing
checked I get this error on my webserver:
当我发布我的Web应用程序并在发布期间预编译时,我在我的网络服务器上收到此错误:
Unable to load DLL 'VSPerf110.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
无法加载DLL“VSPerf110.dll”:找不到指定的模块。 (HRESULT异常:0x8007007E)
The application works if I don't Precompile. How can I fix this?
如果我不预编译该应用程序。我怎样才能解决这个问题?
Here's my settings for publishing:
这是我的发布设置:
2 个解决方案
#1
1
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.
好吧,听起来这个应用程序试图在生产服务器上使用Profiler API。此应用程序中可能存在一些性能跟踪配置文件代码,可能需要注释掉或删除。
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."
根据Profileer API for VS 2012上的此MSDN文档,“您的构建必须引用位于Microsoft Visual Studio 9 \ Team Tools \ Performance Tools目录中的Microsoft.VisualStudio.Profiler.dll库”。
http://msdn.microsoft.com/en-us/library/bb514149(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/bb514149(v=vs.110).aspx
#2
0
I got the same error message in Visual Studio 2015 and wanted to post a different solution in case it helps someone else. In my case, I had used Visual Studio's Performance Profiler to do some performance analysis. However, I never modified my code to add references to Microsoft.VisualStudio.Profiler.dll. When I copied my files to our test server, I received the error message.
我在Visual Studio 2015中收到了相同的错误消息,并希望发布一个不同的解决方案,以防它帮助其他人。就我而言,我曾使用Visual Studio的Performance Profiler进行一些性能分析。但是,我从未修改过我的代码以添加对Microsoft.VisualStudio.Profiler.dll的引用。当我将文件复制到测试服务器时,收到了错误消息。
I searched my code for "VSPerf110" but found nothing. Finally I tried using a separate search utility to search all files in the directory and found it: the string "VSPerf110.dll" was found in one of the compiled dlls, despite the fact that none of my code had changed.
我搜索了我的代码“VSPerf110”但没有发现任何东西。最后,我尝试使用单独的搜索实用程序搜索目录中的所有文件并找到它:在其中一个已编译的dll中找到字符串“VSPerf110.dll”,尽管我的代码都没有更改。
To fix the issue, I deleted all my performance analysis output files (these are non-code files generated by Visual Studio), and did a Clean/Rebuild on the solution. After this, searching for the string "VSPerf110.dll" returned 0 results. When I copied the recompiled dlls to the test server, the error message went away.
为了解决这个问题,我删除了所有性能分析输出文件(这些是Visual Studio生成的非代码文件),并对解决方案进行了清理/重建。在此之后,搜索字符串“VSPerf110.dll”返回0结果。当我将重新编译的dll复制到测试服务器时,错误消息消失了。
#1
1
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.
好吧,听起来这个应用程序试图在生产服务器上使用Profiler API。此应用程序中可能存在一些性能跟踪配置文件代码,可能需要注释掉或删除。
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."
根据Profileer API for VS 2012上的此MSDN文档,“您的构建必须引用位于Microsoft Visual Studio 9 \ Team Tools \ Performance Tools目录中的Microsoft.VisualStudio.Profiler.dll库”。
http://msdn.microsoft.com/en-us/library/bb514149(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/bb514149(v=vs.110).aspx
#2
0
I got the same error message in Visual Studio 2015 and wanted to post a different solution in case it helps someone else. In my case, I had used Visual Studio's Performance Profiler to do some performance analysis. However, I never modified my code to add references to Microsoft.VisualStudio.Profiler.dll. When I copied my files to our test server, I received the error message.
我在Visual Studio 2015中收到了相同的错误消息,并希望发布一个不同的解决方案,以防它帮助其他人。就我而言,我曾使用Visual Studio的Performance Profiler进行一些性能分析。但是,我从未修改过我的代码以添加对Microsoft.VisualStudio.Profiler.dll的引用。当我将文件复制到测试服务器时,收到了错误消息。
I searched my code for "VSPerf110" but found nothing. Finally I tried using a separate search utility to search all files in the directory and found it: the string "VSPerf110.dll" was found in one of the compiled dlls, despite the fact that none of my code had changed.
我搜索了我的代码“VSPerf110”但没有发现任何东西。最后,我尝试使用单独的搜索实用程序搜索目录中的所有文件并找到它:在其中一个已编译的dll中找到字符串“VSPerf110.dll”,尽管我的代码都没有更改。
To fix the issue, I deleted all my performance analysis output files (these are non-code files generated by Visual Studio), and did a Clean/Rebuild on the solution. After this, searching for the string "VSPerf110.dll" returned 0 results. When I copied the recompiled dlls to the test server, the error message went away.
为了解决这个问题,我删除了所有性能分析输出文件(这些是Visual Studio生成的非代码文件),并对解决方案进行了清理/重建。在此之后,搜索字符串“VSPerf110.dll”返回0结果。当我将重新编译的dll复制到测试服务器时,错误消息消失了。