在VS2005中调试Webservice

I am trying to debug a webservice by steping into a web method called
from a windows form project. The strange thing is that sometimes it
works but often it does not. When it does not work I get the following
error when trying to step into a web method:

Unable to automatically step into the server. The remote procedure
could not be debugged. This usually indicaes that debugging has not
been enabled on the server. See help for information.

Here is how my project looks like:

1) project: WinForm project which has a button that activates a web
method.
2) project: Web service which is consumed in project 1.

Solution -> Set Startup Project... -> Common Properties -> Startup
Project:
Multiple startup projects (注意:设置两个项目同时为启动项目)
1) entry: WebServiceProject (Action = Start)
2) entry: WinForm project (Action = Start)

Web.config is set to:
<compilation debug="true"/>
<authentication mode="Windows"/>

(注意:WebService项目的启动属性设置:等待外部程序请求再启动 )
WebService project -> Property Pages -> Start Options
Don't open a page. Wait for a request from an external
appplication.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值