Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

RE: Can run WCF service on IIS (windows XP)

 
 
Thread Tools Display Modes
Old 05-08-2007   #1 (permalink)
Oleg Maksimenko
Guest


 

RE: Can run WCF service on IIS (windows XP)

Shimon,

Try to remove additional TCP ports from IIS settings.
I had same problem when my IIS listened on ports 80 and 8080.

Thanks,
Oleg.

"Shimon Sim" wrote:

> I create webservice that runs ok in developer server but after I moved it to
> IIS I got following error.
>
> Server Error in '/ScmReportServices' Application.
> --------------------------------------------------------------------------------
>
> This collection already contains an address with scheme http. There can be
> at most one address per scheme in this collection.
> Parameter name: item
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information about
> the error and where it originated in the code.
>
> Exception Details: System.ArgumentException: This collection already
> contains an address with scheme http. There can be at most one address per
> scheme in this collection.
> Parameter name: item
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current web
> request. Information regarding the origin and location of the exception can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
>
> [ArgumentException: This collection already contains an address with scheme
> http. There can be at most one address per scheme in this collection.
> Parameter name: item]
> System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri
> item) +4346949
> System.Collections.Generic.SynchronizedCollection`1.Add(T item) +56
> System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +120
> System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[]
> baseAddresses) +155
> System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type
> serviceType, Uri[] baseAddresses) +28
>
> System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String
> constructorString, Uri[] baseAddresses) +323
> System.ServiceModel.HostingManager.CreateService(String
> normalizedVirtualPath) +698
> System.ServiceModel.HostingManager.ActivateService(String
> normalizedVirtualPath) +31
> System.ServiceModel.HostingManager.EnsureServiceAvailable(String
> normalizedVirtualPath) +445
>
> [ServiceActivationException: The service '/ScmReportServices/AgentLogin.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.
> Parameter name: item.]
> System.ServiceModel.HostingManager.EnsureServiceAvailable(String
> normalizedVirtualPath) +962
>
> System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) +419
>
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
> +260
>
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
> +760
>
> System.ServiceModel.Activation.HostedHttpModuleRequestAsyncResult.BeginRequest() +178
> System.ServiceModel.Activation.HttpModule.StartBeginProcessRequest(Object
> sender, EventArgs e, AsyncCallback cb, Object extraData) +70
> System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender,
> EventArgs e) +195
>
> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +64
>
> And this is server configuration.
>
> <system.serviceModel>
> <behaviors>
> <serviceBehaviors>
> <behavior name="ReportService.ServiceImplementation.AgentLogin_Behavior">
> <serviceDebug includeExceptionDetailInFaults="false" />
> <serviceMetadata httpGetEnabled="true" />
>
> </behavior>
> </serviceBehaviors>
> </behaviors>
> <services>
> <service
> behaviorConfiguration="ReportService.ServiceImplementation.AgentLogin_Behavior"
> name="ReportService.ServiceImplementation.AgentLogin">
> <endpoint binding="wsDualHttpBinding"
> bindingNamespace="http://ReportService.ServiceContracts/2007/04"
> contract="ReportService.ServiceContracts.IAgentLogin" />
> </service>
> </services>
> </system.serviceModel>
>
> Thanks,
> Shimon

Old 05-08-2007   #2 (permalink)
Marc Gravell
Guest


 

Re: Can run WCF service on IIS (windows XP)

If you don't have control of the server, another solution is to
provide a custom ServiceHostFactory that overrides CreateServiceHost
and filters the addresses before calling down to the base
implementation. You can specify the factory to use via the .svc file.

Marc


 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Windows Firewall service terminated with service-specific erro Kraig Vista security 1 4 Weeks Ago 05:51 PM
The Windows Firewall service terminated with service-specific erro DaMnIt Vista security 7 10-10-2007 12:34 PM
Windows Search service and Indexing Service do not work emphyrio General Discussion 6 07-25-2007 12:02 PM
Security Service and Windows Wireless Service stopped working Kolin Tregaskes Vista General 3 06-11-2007 12:34 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50