473,761 Members | 5,578 Online
Bytes | Software Development & Data Engineering Community
+ 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 UriSchemeKeyedC ollection 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 16726
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...@yah oo.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 UriSchemeKeyedC ollection class. I have also
tried to navigate tohttp://localhost/servicemodelsam ples/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
149808
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
4658
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 Line2 blah blah blah Line3 blah ">
2
2028
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 scheme (undefined) is not supported by this service..." Why not? I know I've validated pages in the past at members.cruzio.com/~webcab/ ... Any help would be greatly appreciated.
5
1383
by: JKop | last post by:
You can overload the address-of operator. Consider a simple class: class Blah { public: Blah* operator&() { return this; }
10
17216
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 define the Add, Contains and Remove methods is an IList, and we all should know that a set isn't a list. ICollection only defines Count and CopyTo, which isn't useful at all. So even if I want to write my own Set implementation, what interface...
4
2278
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 actually search the entire collection to tell me whether an object in the collection were identical with the comparison object I was passing it. But I opened up the same collection data into two separate collections (loaded them from disk) and did...
3
8317
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 are a couple of people selling components... but that is not really an option for me... So, I took the plunge and modified the "WebUIValidation.js" file to make it happen... After tracing through file, I figure it out. It was actually pretty...
7
2249
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 me. So, I'm here for an answer (more of a confirmation), hopefully. First let me say that I know people keep saying; it doesn't work because the member "is a private". I believe there's more to it than just simply that... Theory: You inherit,...
11
3082
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 find it a bit annoying) TIA, JS
0
9538
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9975
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8794
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7342
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6623
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3889
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 we have to send another system
3
2765
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.