none
Avoid This collection already contains an address with scheme http RRS feed

  • Question

  • Hi all,

    I have this issue:

    I have WebSite with asp.net pages.

    httpp://desiis:90/WebSite1

     

    In this webSite, I have a Service WCF (service1.svc).

    httpp://desiis:90/WebSite1/services/Service1.svc

    When I call to the service, I get this error: This collection already contains an address with scheme http

     

    In my localhost all is OK.


    any solution, please ??

    note: aspx page and WCF service is in the same web application is required

    My current scenario is that the ASPX web page use forms authentication and it will call a WCF service, and you want to let the forms authenticated identity be transfered to WCF service.

      1) if aspx page and WCF service is in the same web application, you can turn on AspNetCompatiblity mode for WCF so that the HttpContext will be available to WCF service operation code.

    thanks in advanced, greetings

     

    Thursday, June 24, 2010 12:51 PM

Answers