无法自动调试。未能调试远程过程。

今天在 Visual Studio 2008 调试一 WCF 项目时候,忽然弹出如下错误:

Unable to automatically debug ‘xxx’. The remote procedure could not be debugged. This usually indicates that debugging has not been enabled on the server.

unable-to-debug-any-cpu

按网上很多朋友说的,设置 WCF 的 web.config 中 compilation 的 debug=”true”,但已经是 true 了。更奇怪的是记得以前都没有问题,今天才出现。

Solved: Unable to automatically step into the server. The remote procedure could not be debugged… 的方法,将调用 WCF 的 WinForm 项目的平台目标改为 x86(选择项目,右击,选择属性),竟然真的可以。

unable-to-debug-any-cpu01

原来另一个团队成员在该 WinForm 引用一个第三方的 dll,这个 dll 直接编译成了 x86 。也不知道内部什么原因竟然导致 WinForm 可以调试,但远程的 WCF 却无法调试,真是诡异。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值