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:

                <add baseAddress="
            <endpoint address=""
                      contract="EssentialWCF.IStockService" />

            <endpoint address="mex"
                      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


  • 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.

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

All replies