【发布时间】:2011-08-26 17:10:29
【问题描述】:
最近我开发了一个 wcf 服务。 直到昨天它工作正常。我能够测试它 在内置的 WCF 测试客户端中使用 VS2010。 从昨天开始,我无法在 WCF 测试客户端中看到我的服务。 当我按 F5 时,它会打开 Wcf 测试客户端窗口并在底部 它显示服务添加成功。但它不加载任何服务。 我试图从文件/添加服务手动添加它,但它仍然没有加载。 可能是什么问题呢。 我真的很感谢你的帮助。 这是我的 Web.config。
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<bindings/>
<client/>
<services>
<service behaviorConfiguration="myproj.ServiceBehavior" name="myproj.Service">
<endpoint address="" binding="webHttpBinding" contract="myproj.IService" behaviorConfiguration="REST">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="REST">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="myproj.ServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
【问题讨论】: