开发者

WCF: Routing service and "Unable to automatically debug 'service name'. The remote procedure could not be debugged

Recently we added the new WCF Routing Service to our project. While debugging a test client calling to one of our test services, we are getting an error message with the following message:

    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.

The strange thing is that the debugger is still able to connect to the indicated service name. If I point my client to the service directly, the error dialog does not appear. I've checked the web configs on all services, debugging is enabled. There is also no security mod开发者_运维百科el being specified as I've seen on other posts.

The service is being hosted in IIS on Windows 7 Enterprise SP1. Visual Studio 2010 Ultimate with SP1.


I solved this issue by going to

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

then running

vsdiag_regwcf.exe -i

What this does:

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

Remark: I'm running an x64 version of Win7, and though 99% of Visual Studio is located in C:\Program Files (x86)\, this tool is in C:\Program Files\

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜