WCF-为什么没有WSDL
我在IIS中使用以下web.config托管了几个服务。我可以浏览到该服务,但收到消息“此服务的元数据发布当前已禁用。” 谁能发现我的错误(我不能!)WCF-为什么没有WSDL,wcf,wsdl,Wcf,Wsdl,我在IIS中使用以下web.config托管了几个服务。我可以浏览到该服务,但收到消息“此服务的元数据发布当前已禁用。” 谁能发现我的错误(我不能!) 您尚未使用命名空间完全限定您的服务名称。但是,当您尝试运行服务主机时,这应该显示为一个错误。我没有发现任何错误-两个服务都指定了一个服务行为,其中包括,并且两个服务都有一个MEX端点。。。。六羟甲基三聚氰胺六甲醚。。。。奇怪的重新启动IIS??服务元素的名称为“Calculator”,应为“WCFTwoEndpoints.Calculator”
您尚未使用命名空间完全限定您的服务名称。但是,当您尝试运行服务主机时,这应该显示为一个错误。我没有发现任何错误-两个服务都指定了一个服务行为,其中包括
,并且两个服务都有一个MEX端点。。。。六羟甲基三聚氰胺六甲醚。。。。奇怪的重新启动IIS??服务元素的名称为“Calculator”,应为“WCFTwoEndpoints.Calculator”。该名称需要完全限定。
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<services>
<service name="Calculator" behaviorConfiguration ="NotThrottled">
<endpoint address="http://localhost/WCFTwoEndpoints/Calculate.svc"
binding="wsHttpBinding" bindingConfiguration="" name="Calculator"
contract="WCFTwoEndpoints.ICalculate" />
<endpoint binding="mexHttpBinding" name="mex" contract="IMetadataExchange" />
</service>
<service name="ThrottledCalculator" behaviorConfiguration ="Throttled">
<endpoint address="http://localhost/WCFTwoEndpoints/ThrottledCalculate.svc"
binding="wsHttpBinding" bindingConfiguration="" name="ThrottledCalculator"
contract="WCFTwoEndpoints.ICalculate" />
<endpoint binding="mexHttpBinding" name="mex" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="NotThrottled">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="Throttled">
<serviceMetadata httpGetEnabled="true" />
<serviceThrottling maxConcurrentCalls="19" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>