Hi Ganesh,
My case/issue is similar, but there is a little bit difference:
On the web server where my web service resides:
(1) OS is Windows 2003 Server.
(2) IIS is 6.0 and its Directory Security is checked on Anonymous Access.
(3) .Net framework is 2.0.
(4) There is a web service developed by Visual Studio 2.0 -- just one web method "Hello World".
On the client server where a testing asp.net page which consumes the web service resides:
(1) OS is Windows XP professional.
(2) IIS is 6.0 and its Directory Security is checked on Anonymous Access too.
(3) .Net framework is 2.0.
(4) There is a testing asp.net page developed by Visual Studio 2.0 --just one button to invoke the web method "Hello World".
The two machine in the same network now.
Whenever I request the testing page, I will always get the error:
Additional information: The request failed with HTTP status 401: Unauthorized.
I followed your way, but it still doesn't work. When requesting the testing page, I don't need to do any authentication because the IIS on the client server has been set as Anonymous Access. The CredentialCache.DefaultCredential doesn't seem to hold any username and password. Any thought?
It's said that .net 2.0 doesn't allow Anonymous Access for web services anymore no matter what you set on the IIS of the server where the web service resides, correct? May I add an username/password which can pass the authentication of the web service server to the proxy instance? If so, how do you do it? Thanks in advance.
|