我试图在IIS 7.5中托管我的WCF服务时,除了两根头发外,我已经撕掉了。 我正在使用Spring.NET来创建我的服务实例,但是我没有运气来运行它。
我遇到以下异常:
Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [].
我的WCF配置如下:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="secureBinding" allowCookies="false">
<security mode="Transport">
<transport clientCredentialType="None">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="TestService">
<host>
<baseAddresses>
<add baseAddress="https://ws.local.com/TestService.svc"/>
</baseAddresses>
</host>
<endpoint name="secureEndpoint" contract="Services.Interfaces.ITestService" binding="wsHttpBinding" bindingConfiguration="secureBinding" address="https://ws.local.com/TestService.svc" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
我在这里缺少什么?