您的位置:首页 > 产品设计 > UI/UE

WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求

2014-05-16 22:20 1076 查看
http://tech.ddvip.com/2009-06/1245068403123972.html

进行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.

  错误截图:



   由于内部错误,无法处理请求。

  解决办法:

  在服务行为里配置错误属性即可:

  添加如下代码到服务类:

双击代码全选

  系列文章:

  WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错

  WCF分布式开发常见错误解决(2)无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接

  WCF分布式开发常见错误解决(3):客户端调用服务出错

  WCF分布式开发常见错误解决(4):The type or namespace name 'DataContract' could not be found DataContract找不到

  WCF分布式开发常见错误解决(5)Could not find a base address that matches scheme

  WCF分布式开发常见错误解决(6)Service 'WcfServiceApp.WCFService' has zero application

  WCF分布式开发常见错误解决(7):System.InvalidOperationException,Cannot have two operations in the same contract

  WCF分布式开发常见错误解决(8):不一致的访问性Inconsistent accessibility

  WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at

  WCF分布式开发常见错误解决(10):套接字连接中断,The socket connection was aborted

  WCF分布式开发常见错误解决(11):There is already a listener on IP endpoint ,IP 终结点 已经存在侦听器

  WCF分布式开发常见错误(13):The transaction under which this method call was executing ,此方法调用的事务被异步中断

  WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...

  WCF分布式开发常见错误(15):Communication with the underlying transaction manager has failed

  WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断

  WCF分布式开发常见错误(17):无法启动MSMQ服务
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐