问个webservice的问题

lovvver 2007-03-15 03:14:12
最近项目由2003升级到2005,在新平台下开发时碰到了一个问题,登陆时调用webservice失败,直接运行连不了webservice,debug下也跟不进去,提示错误:
Unable to automatically step into the server.The remote procedure could not be debugged.This usually indicates that debuging has not been enabled on the server.

另外:
1。我重新建立了一个webservice和一个application,跟踪进去没问题。
2。ASP.NET Developemen Server已经打开(指定端口1032),并且可以通过explorer浏览webservice。
3。前一天还是可以打开的,今天突然进步去了。

找了半天没搞定,特来请各位兄弟帮帮忙~
...全文
417 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
lovvver 2007-03-16
  • 打赏
  • 举报
回复
竟然结不了,回去再结吧~
lovvver 2007-03-16
  • 打赏
  • 举报
回复
不好意思,原来是web reference被更新了,修改了里面的认证信息的缘故。
多谢楼上各位!
lovvver 2007-03-16
  • 打赏
  • 举报
回复
多谢楼上兄弟,我试试先。
lizhizhe2000 2007-03-15
  • 打赏
  • 举报
回复
再者:
try setting a breakpoint inside the Reference.cs proxy class at an
appropriate point. This "may" enable you to trace through into the actual
WebService code.
Failing that, you can put a System.Diagnostics.Debugger.Break() call inside
the appropriate webservice method.
lizhizhe2000 2007-03-15
  • 打赏
  • 举报
回复
try:以下两种方法

1.允许匿名账户访问IIS( 目录安全性)
2.程序设置信任缓存
假设我们的Web Service有一个默认的方法HelloWorld
Service Service1 = new Service();
Service1.PreAuthenticate = true;
Service1.Credentials = System.Net.CredentialCache.DefaultCredentials;
Response.Write(Service1.HelloWorld());
lovvver 2007-03-15
  • 打赏
  • 举报
回复
各位兄弟~有知道的吗?帮帮忙~多谢啦~
lovvver 2007-03-15
  • 打赏
  • 举报
回复
上面两位提的,都没问题,web.config里debug="true",因为用asp.net developement server,所以不必配iis了。
lizhizhe2000 2007-03-15
  • 打赏
  • 举报
回复
在web Service中添加一个Web.Config,并且添加<compilation debug="true">配置节
yan63 2007-03-15
  • 打赏
  • 举报
回复
没有碰到这样的问题
如果新建的能用,那么
貌似和该webservice站点配置(iis以及web.config)有关.如debug项没开等
lovvver 2007-03-15
  • 打赏
  • 举报
回复
哦~我想,新建webservice项目可以,而且该webservice可以通过浏览器打开,就应该可以连上,但是却连不上,理解不透~刚开始看连不上然后就debug进去,结果提示问题中的信息。搞得一天时间又浪费掉了。~
copico 2007-03-15
  • 打赏
  • 举报
回复
我们公司遇到的问题是WS 2005S可以访问,2003访问不了,然后用2005做了一个中转。

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧