当我尝试加载从web服务方法无法处理该请求,我得到一个错误:服务器由于内部错误
“服务器由于内部错误无法处理该请求有关。有关错误的更多信息,请打开服务器上的IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute或来自配置行为),以便将异常信息发送回客户端,或根据Microsoft .NET Framework SDK文档启用跟踪并检查服务器跟踪日志“
这是我的app.config端点def:
<services>
<service name="Service" behaviorConfiguration="debug">
</services>
<client>
<endpoint name="Service" address="net.tcp://localhost:12708/" binding="netTcpBinding" bindingConfiguration="netTcp" contract="path.IService" >
<identity>
<servicePrincipalName />
</identity>
</endpoint>
</client>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
如果我声明了serviceBehaviors,我看不到更多信息事件。 有人可以告诉我如何查看有关此错误的更多详细信息?
不要使WCF跟踪,看看发生了什么事情。请参阅http://stackoverflow.com/a/4271597/870604 – ken2k
我编辑了您的标题。请参阅:“[应该在其标题中包含”标签“](http://meta.stackexchange.com/questions/19190/)”,其中的共识是“不,他们不应该”。 –