[英]Error while testing wcf in client test
我正在创建一个简单的wcf Web服务,该服务将允许用户从数据库表中提取数据。 实施后如果我在Web浏览器中查看服务,我将获得下一页
(您已创建服务。)没有任何错误。 但是,如果我调试模式,我会得到以下错误。
我真的不明白问题出在哪里,但是我认为它来自我的配置,但是我无法到达哪里。
这是我的web.config文件。
<system.serviceModel>
<services>
<service behaviorConfiguration="namespaceName.Service1Behavior" name="namespaceName.Service">
<endpoint address="http://localhost:6937/Service.svc" binding="basicHttpBinding" contract="namespaceName.IService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="namespaceName.Service1Behavior">
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
我认为您的配置文件中包含以下内容:
<system.web>
<compilation debug="true" />
<system.web>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.