加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

在VS2005中调试Webservice

发布时间:2020-12-17 02:49:06 所属栏目:安全 来源:网络整理
导读: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

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 OptionsDon't open a page. Wait for a request from an externalappplication.?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读