WCF Basic Sample fails with err "This collection already contains an address with scheme http."

J

jtbjurstrom

I'm new to WCF as well as services and am having trouble running the
WCF samples. We've chosen to pursue the WCF model to communicate from
a client WinForm GUI to a service running within a LAN. We plan on
using the TCP protocol for communication. I've been trying to run the
Basic WCF sample and have been getting the error:

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

I have gone through the one time setup procedures that is provided in
msdn as well as the troubleshooting guide. I also haven't found
anything related to error message above anywhere. The stack trace
shows that it throws when creating the ServiceHost. The error is
actually coming from the UriSchemeKeyedCollection class. I have also
tried to navigate to http://localhost/servicemodelsamples/service.svc
and receive the same error.

Any help would be very appreciated.
Thank You
Jayson
 
J

jtbjurstrom

I figured out the issue. My IIS had multiple base addresses it was
providing. I removed the unnecessary websites in the "Advanced
Multiple Web Site Configuration" dialog.
Jayson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top