[英]Error while testing wcf in client test
I'm creating a simple wcf web service that would allow users to pull data from database table. 我正在创建一个简单的wcf Web服务,该服务将允许用户从数据库表中提取数据。 after the implementation If i view the service in a web browser, i would get the page following page
实施后如果我在Web浏览器中查看服务,我将获得下一页
(You have created a service.) without any error.
(您已创建服务。)没有任何错误。 but if i debug mode, i would get the following error.
但是,如果我调试模式,我会得到以下错误。
I really dont understand where the problem is coming from but im thinking its coming from my config fine but i just cant get where. 我真的不明白问题出在哪里,但是我认为它来自我的配置,但是我无法到达哪里。
here is my web.config file. 这是我的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>
I take it you have this in your config file: 我认为您的配置文件中包含以下内容:
<system.web>
<compilation debug="true" />
<system.web>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.