Very urgent help on WCF authentication

Discussion in 'ASP.NET / ASP.NET Core' started by kafar, Apr 27, 2011.

  1. Hi to all,

    I need to insert security settings in a WCF service but I have issues doing this.
    I want my WP7 app (Silverlight 4) connect to my WCF service to retrieve some data, the wcf service must is configured with basicHttpBinding and must request a user/password. It's possible? I have tried some config but with no results.

    Please, can someone help me to explain how write the web.config in wcf service with these requirements or tell me the right way to accomplish my needs?
    Thank you very much.

    -Kafar
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I think you can do that. The drawback is that you can use Either Basic or Anonymous authentication BUT you cannot do both.
     
  3. Thank you for your reply, but if I try to use basic authentication I obtain this exception:

    Exception Details: </b>System.NotSupportedException: Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service

    I set basic auth on IIS and in web.config file of my wcf service, I created on DASP server a user account for access to web app in IIS where the wcf service is located.

    But the problem remain....
     

Share This Page