473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
2 16700
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robin Tucker | last post by:
Hi, I would like to select records from a table where the following criteria hold: SELECT * from Mytable where field x "contains" string @X or
1
by: Shiperton Henethe | last post by:
Hi Anyone know how to do a MAILTO: such that the "BODY=" parameter contains carriage returns ? e.g. <A HREF="mailto:brochure@webwindows.co.uk?subject=Brochure Request&amp;body=Line1 blah blah...
2
by: Ted Altenberg | last post by:
w3c.org recommends I ask this group, so here you go: I'm trying to validate a page I have at: http://members.cruzio.com/~webcab9/svft/contract.html but the w3c valiadator said "this type of URI...
5
by: JKop | last post by:
You can overload the address-of operator. Consider a simple class: class Blah { public: Blah* operator&() { return this; }
10
by: Mart | last post by:
What class does everyone out there use if they want to store a set of values efficiently? In java I use a HashSet, but there is no equivalent in C#. Even worse, the lowest level interface to...
4
by: Robert W. | last post by:
I've built a complex collection object from "System.Collections.CollectionBase". With regard to it, I have a question about the "Contains" method. At first I thought that "Contains" would...
3
by: Steve Yerkes | last post by:
There seems to be way too much confusion over how to set focus on the a field using a field validator. I looked all over the web and found people trying to do this, but not getting anywhere. There...
7
by: relient | last post by:
Question: Why can't you access a private inherited field from a base class in a derived class? I have a *theory* of how this works, of which, I'm not completely sure of but makes logical sense to...
11
by: Joseph S. | last post by:
Hi all, how do I avoid typing the keyword "$this->" every time I need to reference a member of a class inside the class? (coming from a world of cozy auto-complete enabled Java / .Net IDEs I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.