最近我们将新的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.
oda*_*let 18
我去了解决了这个问题
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
Run Code Online (Sandbox Code Playgroud)
然后跑
vsdiag_regwcf.exe -i
Run Code Online (Sandbox Code Playgroud)
这是做什么的:
-i Install Microsoft.VisualStudio.Diagnostics.ServiceModelSink to enable
Visual Studio debugger and profiler support for Windows Communication
Foundation services.
Run Code Online (Sandbox Code Playgroud)
备注:我正在运行x64版本的Win7,虽然99%的Visual Studio位于C:\ Program Files(x86)\,但此工具位于C:\ Program Files \
| 归档时间: |
|
| 查看次数: |
4870 次 |
| 最近记录: |