Hi,
I have a Web service with basic authentication active on IIS, to which I pass a NetworkCredential object:
On my local test solution, everything works fine.
Yet, on the website on the server that is to use the web service, I still get the 401 error. I don't get any compilation errors, so code-wise it looks fine to me. It finds the Web service, but simply does not seem able to authenticate it.
Any ideas? Thanks
I have a Web service with basic authentication active on IIS, to which I pass a NetworkCredential object:
Code:
NetworkCredential objCredential = new NetworkCredential("UID", "PWD");
myWebserviceObject.Credentials = objCredential;
On my local test solution, everything works fine.
Yet, on the website on the server that is to use the web service, I still get the 401 error. I don't get any compilation errors, so code-wise it looks fine to me. It finds the Web service, but simply does not seem able to authenticate it.
Any ideas? Thanks