467,859 Members | 1,340 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,859 developers. It's quick & easy.

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

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

Feb 8 '07 #1
  • viewed: 16071
Share:
2 Replies
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
Feb 8 '07 #2
You probably have more than one host header bound to the site in IIS.
I have this same problem, and can only find this hack:

http://www.robzelt.com/blog/PermaLin...b-c7a8e02e8bd6

- Mark

On Feb 8, 12:26 pm, jtbjurst...@yahoo.com wrote:
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 tohttp://localhost/servicemodelsamples/service.svc
and receive the same error.

Any help would be very appreciated.
Thank You
Jayson

Feb 8 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ted Altenberg | last post: by
5 posts views Thread by JKop | last post: by
4 posts views Thread by Robert W. | last post: by
7 posts views Thread by relient | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.