Visual Studio 2013/2015/2017 profiler adds Not publishable lines in web.config?

吃可爱长大的小学妹 提交于 2019-12-05 02:53:45

In My case it is the issue with visual studio profiler.It checks for local exe path in web.config. I commented the below 2 lines in web.config and it resolved my issue.

<!--<compilation debug="true" targetFramework="4.5" assemblyPostProcessorType="Microsoft.VisualStudio.Enterprise.Common.AspPerformanceInstrumenter, Microsoft.VisualStudio.Enterprise.AspNetHelper, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->
<!--<add key="Microsoft.VisualStudio.Enterprise.AspNetHelper.VsInstrLocation" value="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools\vsinstr.exe"/>-->
Jason

I had the issue: the breakpoint cannot be set after using the profiler. The profiler changed the web.config with the above 2 lines. Comment out the key line and change back the compilation line to the original:

<compilation defaultLanguage="c#" debug="true" targetFramework="4.5.2">

the issue is gone, I can set the breakpoint and debug step by step.

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