开发者

WCF using Spring.NET woes

开发者 https://www.devze.com 2023-01-01 02:50 出处:网络
I\'ve torn out all but two hairs on my head trying to get my WCF services hosted in IIS 7.5. I\'m using Spring.NET to create my service instances, but I\'m having no luck getting it up and running.

I've torn out all but two hairs on my head trying to get my WCF services hosted in IIS 7.5. I'm using Spring.NET to create my service instances, but I'm having no luck getting it up and running.

I encounter the following exception:

Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [].

My WCF configuration is as follows:

<system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="secureBinding" allowCookies="false">
      <security mode="Transport">
        <transport clientCredentialType="None">
          <extendedProtectionPolicy policyEnforcement="Never" />
        </transport>
      </security&g开发者_Python百科t;
    </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" />

What am I missing here?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号