Hi,
I have built a web service to be hosted on IIS.
If I set useDefaultCredentials to true and I test my web method on IIS express it works.
When I publish the web service to IIS and I attempt to run it with the same parameter set to true, I get:
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
If I declare the following:
MyNAVService.Credentials = new NetworkCredential(username, password, domain);
and set useDefaultCredentials = false I get an error in IISExpress as well as the published app.
My question is - how do I manage to pass windows domain credentials through to the calling of the NAV service so my web method can return values to third party apps?
This is URGENT please please assist!!!!
0