Erro ao executar um WS
18/10/2012
0
http://minha_url/arquivo/meu_ws.svc
Aí gerou esse erro. Aparentemente o IIS está ok, mas....
Qualquer ajuda é bem-vinda.
Server Error in '/svgweb' 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) +11645310
System.Collections.Generic.SynchronizedCollection`1.Add(T item) +67
System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +49
System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +129
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +331
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +693
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479
Pjava
Posts
18/10/2012
Pjava
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
Isso startou o serviço e meu problema foi resolvido.
18/10/2012
Tiago
21/10/2012
Joel Rodrigues
Obrigado por compartilhar a solução com a comunidade, PJsva.
Bom, nesse caso estou encerrando o tópico.
Clique aqui para fazer login e interagir na Comunidade :)