This collection already contains an address with scheme http
- From: "J055" <j055@xxxxxxxxxxxxxxxx>
- Date: Fri, 8 May 2009 10:43:27 +0100
Hi
I get this error when I navigate to a web page hosting a WCF service:
System.ServiceModel.ServiceActivationException: The service
'/services/myservice.svc' cannot be activated due to an exception during
compilation. The exception message is: This collection already contains an
address with scheme http. There can be at most one address per scheme in
this collection.
I added this to the web.config file:
<system.serviceModel>
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="http://localhost"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
This works until IIS recycles the application then I get the same error
again. The whole web application is precompiled (not updatable). The service
only uses a single https scheme, not http but the website does need to
listen on multiple http domains.
Any ideas?
Many thanks
Andrew
.
- Follow-Ups:
- RE: This collection already contains an address with scheme http
- From: "Steven Cheng"
- RE: This collection already contains an address with scheme http
- Prev by Date: C# Application is closed when creating a new instance of a Web Ser
- Next by Date: Re: 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine
- Previous by thread: C# Application is closed when creating a new instance of a Web Ser
- Next by thread: RE: This collection already contains an address with scheme http
- Index(es):
Relevant Pages
|