none
【求助】自定义Web Service的运行异常问题 RRS feed

  • 问题

  • 我编写了一个自定义的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学步
    2011年11月6日 21:44

答案

  • 这个异常是 WCF 抛出来的,可见 IIS 是正常的。请根据提示,把 web.config 里面的 serviceDebug 的 includeExceptionDetails 设置为 true,然后把 compilation debug 也设置为 true,就可以看到详细的错误信息。看起来可能是 WCF 权限/配置有关的问题。


    Mark Zhou
    2011年11月8日 9:23

全部回复