Link to home
Start Free TrialLog in
Avatar of singsunn
singsunn

asked on

how to set up WCF with SSL

I'm trying to set up http WCF service with SSL but i'm getting following error when trying to access it

System.Net.WebException: The remote server returned an error: (401) Unauthorized.

However, the service is running and also i can add a web reference to my Visual Studio project  (prompts me with username and password)

any suggestions?
SOLUTION
Avatar of jamesrh
jamesrh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of singsunn
singsunn

ASKER

wr.Credentials = new NetworkCredential("username", "password");
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial