472,976 Members | 1,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,976 software developers and data experts.

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 16666
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.