我尝试在 WcfTestClient 中调用我的服务时收到此错误
我的配置:
<services>
<service behaviorConfiguration="MetadataBehavior" name="ServiceModel.Service">
<endpoint address="soap" binding="basicHttpBinding" name="Soap"
contract="ServiceModel.IService" />
<endpoint address="rest" behaviorConfiguration="jsonBehavior"
binding="webHttpBinding" bindingConfiguration="webHttpBindingSettings"
name="Json" contract="ServiceModel.IService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://dev.add.com/Service.svc/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MetadataBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="jsonBehavior">
<webHttp automaticFormatSelectionEnabled="true" helpEnabled="true"/>
</behavior>
</endpointBehaviors>
</behaviors>
为什么我收到此错误,它与为 json 端点设置的此属性有关?