WCF:路由服务和“无法自动调试'服务名称'。无法调试远程过程

时间:2011-06-07 20:18:49

标签: wcf iis-7

最近我们将新的WCF路由服务添加到我们的项目中。在调试测试客户端调用我们的某个测试服务时,我们收到一条错误消息,其中包含以下消息:

    Unable to automatically debug 'Service Name'.  The remote procedure could 
    not be debugged. This usually indicates that debugging has not been enabled 
    on the server.  See help for more information.

奇怪的是,调试器仍然能够连接到指定的服务名称。如果我直接将客户端指向服务,则不会出现错误对话框。我检查了所有服务的Web配置,启用了调试。还没有像我在其他帖子上看到的那样指定安全模型。

该服务在Windows 7 Enterprise SP1上的IIS中托管。带SP1的Visual Studio 2010 Ultimate。

1 个答案:

答案 0 :(得分:18)

我通过转到

解决了这个问题
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

然后运行

vsdiag_regwcf.exe -i

这是做什么的:

-i     Install Microsoft.VisualStudio.Diagnostics.ServiceModelSink to enable
       Visual Studio debugger and profiler support for Windows Communication
       Foundation services.

备注:我正在运行Win64的x64版本,虽然99%的Visual Studio位于 C:\ Program Files(x86)\ 中,但这工具位于 C:\ Program Files \

相关问题