积极答复者
【求助】自定义Web Service的运行异常问题

问题
-
我编写了一个自定义的Web Service,我使用“use visual studio development server”选项进行Debug时程序运行正常,但当我改为“Use Local IIS Web Server”选项进行Debug时运行有如下异常(The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.5 SDK documentation and inspect the server trace logs.)我想知道下是不是有哪边的设置或权限有问题。希望能够得到大家的帮助,先谢谢大家了。
crm4.0学步
答案
-
这个异常是 WCF 抛出来的,可见 IIS 是正常的。请根据提示,把 web.config 里面的 serviceDebug 的 includeExceptionDetails 设置为 true,然后把 compilation debug 也设置为 true,就可以看到详细的错误信息。看起来可能是 WCF 权限/配置有关的问题。
Mark Zhou- 已标记为答案 Dummy yoyoModerator 2011年11月15日 2:04
全部回复
-
你好!
请先检查你的iis是否安装或者配置正确,可以参照:http://wenku.baidu.com/view/2403ff37ee06eff9aef807c0.html
看看是不是这样的,能不能在最后打开最后和上面文档中一样的页面。
还有一个容易忽略的问题:如果按照了防火墙,请暂时关闭试试看。
"I will love the light for it shows me the way, yet I will endure the darkness for it shows me the stars."-- Og Mandino (1923 - 1996) -
Hi 路人学步,
欢迎来到MSDN论坛!
您的问题处理的怎么样了?
关于IIS的问题,您可以尝试下面的论坛:
http://social.msdn.microsoft.com/Forums/zh-CN/267/threads
Microsoft Developer Network > 论坛主页 > Web 技术 论坛 > Web开发, 微软浏览器IE相关讨论 (IIS,IE8,IE9等)
MSDN谢谢您的理解!
祝您,一切顺利!
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
这个异常是 WCF 抛出来的,可见 IIS 是正常的。请根据提示,把 web.config 里面的 serviceDebug 的 includeExceptionDetails 设置为 true,然后把 compilation debug 也设置为 true,就可以看到详细的错误信息。看起来可能是 WCF 权限/配置有关的问题。
Mark Zhou- 已标记为答案 Dummy yoyoModerator 2011年11月15日 2:04