soap标头异常未被用户代码处理

时间:2015-06-17 06:31:40

标签: asp.net-mvc wcf asp.net-mvc-4

{"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 SDK documentation and inspect the server trace logs."}

当我尝试仅使用wcf服务进行插入时,我收到此错误。剩余的选择和删除查询工作正常。

1 个答案:

答案 0 :(得分:0)

您获得的例外情况不足以解释。您暂时可以做的是,使用此[ServiceBehavior(IncludeExceptionDetailInFaults = true)]

来装饰您的服务合同

这将为您提供有关异常错误的详细信息。