Visual studio 2015 Visual Studio 2013/2015/2017探查器是否在web.config中添加不可发布的行?
今天,我只是在插装模式下使用VisualStudio的探查器评测我的WCF应用程序。后来我需要发布到我的web服务器,突然发现一个错误,说找不到Microsoft.VisualStudio.Enterprise.AspNetHelper文件路径 当我查看我的web.config时,我看到分析会话添加了以下行Visual studio 2015 Visual Studio 2013/2015/2017探查器是否在web.config中添加不可发布的行?,visual-studio-2015,visual-studio-2013,visual-studio-2017,web-config,profiler,Visual Studio 2015,Visual Studio 2013,Visual Studio 2017,Web Config,Profiler,今天,我只是在插装模式下使用VisualStudio的探查器评测我的WCF应用程序。后来我需要发布到我的web服务器,突然发现一个错误,说找不到Microsoft.VisualStudio.Enterprise.AspNetHelper文件路径 当我查看我的web.config时,我看到分析会话添加了以下行 <system.web> <compilation targetFramework="4.0" debug="true" assemblyPostProcessorTy
<system.web>
<compilation targetFramework="4.0" debug="true" assemblyPostProcessorType="Microsoft.VisualStudio.Enterprise.Common.AspPerformanceInstrumenter,
Microsoft.VisualStudio.Enterprise.AspNetHelper, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<runtime>
<generatePublisherEvidence enabled="false"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.AspNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<codeBase version="12.0.0.0" href="file:///C:/Program%20Files%20(x86)/Microsoft%20Visual%20Studio%2012.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.AspNetHelper.DLL"/>
</dependentAssembly></assemblyBinding></runtime>
<appSettings>
<!--<add key="Microsoft.VisualStudio.Enterprise.AspNetHelper.VsInstrLocation" value="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\vsinstr.exe"/>-->
</appSettings></configuration>
描述:处理配置文件时出错
这是这个请求所需要的。检查特定的错误详细信息
并适当修改您的配置文件
分析器错误消息:文件或程序集
'Microsoft.VisualStudio.Enterprise.AspNetHelper,版本=14.0.0.0,
区域性=中性,PublicKeyToken=“或其
找不到依赖项。系统找不到指定的文件
源错误:
服务器上出现应用程序错误。由于当前自定义错误
此应用程序的错误设置包含应用程序的详细信息
可以显示远程错误(出于安全原因)。但是
可以由本地服务器上运行的浏览器查看
源文件:C:\www\web.config
电话号码:52
加载跟踪程序集:可以使用以下信息确定,
为什么程序集为Microsoft.VisualStudio.Enterprise.AspNetHelper,
版本=14.0.0.0,区域性=中性,PublicKeyToken=
无法加载b03f5f7f11d50a3a
警告:程序集绑定日志记录已关闭。您可以启用程序集日志记录
绑定失败,请删除注册表值[HKLM\Software\Microsoft]\
Fusion!EnableLog](DWORD)设置为1。注意:程序集绑定日志记录
错误会导致一定的性能损失。您可以
关闭功能,删除注册表值[HKLM\Software\Microsoft\
Fusion!EnableLog]
在我的例子中,这是visual studio profiler的问题。它检查web.config中的本地exe路径。我在web.config中对以下两行进行了注释,解决了我的问题
<!--<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"/>-->
我遇到了一个问题:在使用探查器后无法设置断点。探查器使用上述两行更改了
web.config
。注释掉关键行并将编译行更改回原始行:
<compilation defaultLanguage="c#" debug="true" targetFramework="4.5.2">
问题已经解决,我可以设置断点并逐步调试。您好,这是Visual Studio探查器团队,这肯定是一个错误。请您提交一个连接错误,并包括您的开发操作系统版本、VS版本、IIS版本、IIS主机操作系统版本等信息。我将于周一在@Andrehilton上填写错误报告,b但我也遇到了这个问题,所以这仍然是一个问题,而不仅仅是一个人。在VS2015 R3中,这仍然是一个问题在VS2015 R3中对我来说仍然是一个问题在VS2017中仍然是一个问题(15.6.0)在运行Profiler之前,我刚刚查看了我的web.config,它很有魅力。修复这个Microsoft!你真的读过这个问题吗?你在重复我上面写的内容,你的答案与这个问题无关
<!--<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"/>-->
<compilation defaultLanguage="c#" debug="true" targetFramework="4.5.2">