This collection already contains an address with scheme http. There can be at most one address per

Discussion in 'Silverlight' started by murali, Aug 20, 2007.

  1. 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


    Replcate error: Run the above url
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. 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
     
  4. Can you post the web.config of both the client and the service.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. 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>
    </o:p>
    <serviceBehaviors></o:p>
    </o:p>
    <serviceDebug includeExceptionDetailInFaults="true" /></o:p>
    </behavior></o:p>
    </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>
    </o:p>
    <wsHttpBinding></o:p>

    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
     
  6. 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
     

Share This Page