locked
Hosting a WCF service. RRS feed

  • Question

  • I have a WCF service I am trying to host in IIS. I've created an Application under the default web site and the web site is working fine. However when hitting the WCF service I get this error:

    This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.

    I added baseAddressPrefixFilters like so (MyDomainName isn't the domain I used):

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"> <baseAddressPrefixFilters> < add prefix="http://MyDomainName.com/" /> </baseAddressPrefixFilters> </serviceHostingEnvironment>

    Which gave me this error:

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

    So I made it https which gave me this error again:

    This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. What settings do I need to have in order to host a WCF service?

    Thanks Darick
    • Moved by Ken WarrenModerator Sunday, May 23, 2010 3:02 PM dev question (From:Windows Home Server Code Name "Vail" Beta)
    Sunday, May 23, 2010 2:47 PM

Answers

All replies