none
This Collection Already Contains An Address With Scheme Http RRS feed

  • Question

  • I am building a simple WCF Service.  I keep receiving the following error at runtime:


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


    Below is part of my App.config file:



    <baseAddresses>
                <add baseAddress="
    http://localhost:8000/WCF"/>
              </baseAddresses>
            </host>
            <endpoint address=""
                      binding="basicHttpBinding"
                      contract="EssentialWCF.IStockService" />

            <endpoint address="mex"
                      binding="mexHttpBinding"
                      contract="IMetadataExchange" />


    I am not hosting this service in IIS. I am using the hosting program that came with Visual Studio 2008.
    Why am I receiving the error?

    Friday, September 11, 2009 6:50 AM

Answers

  • Are you maybe adding another http base address through code? Try commenting out the base address specified in the configuration file and see what happens.

    Regards,
    Stipe-Ivan
    • Marked as answer by Unhandled Friday, September 11, 2009 2:30 PM
    Friday, September 11, 2009 8:09 AM

All replies