WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
2009-05-30 16:23
876 查看
进行WCF编程过程中会遇到这样的错误:服务无法处理的请求由于内部错误。 具体信息如下: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.0 SDK documentation and inspect the server trace logs.
错误截图:
由于内部错误,无法处理请求。
解决办法:
在服务行为里配置错误属性即可:
添加如下代码到服务类:
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
错误截图:
由于内部错误,无法处理请求。
解决办法:
在服务行为里配置错误属性即可:
添加如下代码到服务类:
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
相关文章推荐
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- Workflow4发布问题:The server was unable to process the request,服务无法处理请求 .
- 连接WCF出现错误:The server was unable to process the request due to an internal
- WCF分布式开发常见错误(23):This could be due to the fact that the server certificate is not configured properly with HTTP.SYS
- SharePoint designer 2010编辑List的表单时出现错误:soap:Server was unable to process request. ---> Value does not fall within the expected range
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(3):客户端调用服务出错:You have tried to create a channel to a service that does not support .Net Framing
- 调用公网上Web Service错误一例Server was unable to process request.
- WCF分布式开发常见错误(13):The transaction under which this method call was executing ,此方法调用的事务被异步中断
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- Unable to make the session state request to the session state server处理方法