View Full Version : This collection already contains an address with scheme http. There can be at most one address per
murali
08-20-2007, 04:46 AM
Error message:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item
The error occured while running hosted WCF application
Software specifications:
Application: Sample WCF application with a service .svc file
Framework : .Net framework 3.0, WCF
WCF binding used: wsHttpBinding
URL:www.ideadms.com/service.svc (www.ideadms.com/service.svc)
Replcate error: Run the above url
bruce
08-20-2007, 05:27 AM
did you fix the problem? didn't get any error.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
murali
08-21-2007, 04:55 AM
That error is solved. Struck with new Issue.
Error Message:
The request for security token could not be satisfied because authentication failed
Software:
.Net Frame work 3.0 with WCF
URL:
http://www.ideadms.com/WCFClient/Default.aspx
Replication of error:
Try the above url
Details:
The service is created and working fine. Accessing the service from a client application is giving the security token authentication failed!
Murali
Aristotle
08-24-2007, 12:41 AM
Can you post the web.config of both the client and the service.
Aristotle
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
murali
08-24-2007, 04:40 AM
Hi,
Please find the details you asked for.
SERVICE WEB.CONFIG is as follows:
</o:p>
</o:p>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"></o:p>
<system.serviceModel></o:p>
<services></o:p>
<service </o:p>
name="DMSServices"</o:p>
behaviorConfiguration="MyServiceBehavior"></o:p>
<endpoint </o:p>
contract="I_DMSServices" </o:p>
binding="wsHttpBinding"/></o:p>
<endpoint </o:p>
contract="IMetadataExchange" binding="mexHttpBinding"</o:p>
address="mex" /></o:p>
</service></o:p>
</services></o:p>
[b]</o:p>
<serviceBehaviors></o:p>
[b]</o:p>
<serviceDebug includeExceptionDetailInFaults="true" /></o:p>
</behavior></o:p>
[b]</o:p>
<serviceMetadata httpGetEnabled="true" /></o:p>
</behavior></o:p>
</serviceBehaviors></o:p>
</behaviors></o:p>
</system.serviceModel></o:p>
</o:p>
<system.web></o:p>
<compilation debug="true"/></o:p>
</system.web></o:p>
</o:p>
</configuration>
CLIENT WEB.CONFIG is as follows:
</o:p>
<configuration></o:p>
<system.web></o:p>
<compilation debug="true"></compilation></o:p>
</system.web></o:p>
<system.serviceModel></o:p>
</o:p>
<client></o:p>
<endpoint </o:p>
address="http://www.ideadms.com/Service.svc" </o:p>
binding="wsHttpBinding" </o:p>
contract="I_DMSServices" </o:p>
bindingConfiguration="ServBinding"/></o:p>
</client></o:p>
</o:p>
[b]</o:p>
<wsHttpBinding></o:p>
[b]
name="ServBinding" </o:p>
openTimeout="00:10:00" </o:p>
closeTimeout="00:01:00" </o:p>
sendTimeout="00:10:00" </o:p>
receiveTimeout="00:10:00" </o:p>
maxBufferPoolSize="52428890" </o:p>
maxReceivedMessageSize="60000000"/></o:p>
</wsHttpBinding></o:p>
</bindings></o:p>
</system.serviceModel></o:p>
</configuration></o:p>
</o:p>
Murali
Aristotle
08-27-2007, 08:24 AM
I don't see the identity element in the client web.config. Did you run the svcutil tool to get the config settings?
Aristotle
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
vBulletin® ©Jelsoft Enterprises Ltd.