keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main > 11/2005

 #1  
11-04-05, 07:24 PM
Sachin
Scenario:

Machine A: ASP.NET Web UI
IIS 6.0
Windows Server 2003
Impersonation Account: domain\Acct1


Machine B: ASP.NET Web Service
IIS 6.0
Windsow Server 2003
Impersonation Account: domain\Acct2



when Web UI calls Web Service, it fails saying "System.Web.Exception The
request failed with HTTP status 401: Unauthorized."

When I look at the IIS log for Web Service I see,

WebService.asmx -> HTTP Code, 401 2
WebService.asmx -> HTTP Code, 401 3
WebService.asmx -> HTTP Code, 401 1


domain\Acct1 has full control over web service web site and all the files
underneath it.



I used filemon on WebService.asmx and found that IIS is even not tring to
read it.


Then I deployed the same Web Service on Machine C, with similar
configuration. Web UI works fine.

Could someone please help me to find out what could be wrong?

Any pointer?

Thanks in advace
Sachin
 #2  
11-04-05, 08:46 PM
Bruce Barker
either pass credentials when calling webservice, or in the webservice vdir
allow anonymous.

-- bruce (sqlwork.com)

"Sachin" <annonymous> wrote in message
news:4076
[..]
 #3  
11-04-05, 09:15 PM
Sachin
I am passing Default credentials while calling the web service.

Even anonumous access is not working.

However, it works on Machine C.

"Bruce Barker" <brubar_nospamplease_> wrote in message
news:3740
[..]
Similar Threads
The request failed with HTTP status 401: Unauthorized.

Hello All, Could be regurgitating an old issue that I have been unable to find a solution but here goes... System Info: VM1 (Virtual Machine running on VMWare Server 1.0.8) -...

The request failed with HTTP status 401: Unauthorized.

Has anyone experienced this message when attempting to consume a Sharepoint Web Service? I have seen many posts with many suggestions, but I have not been able to get beyond...

The request failed with HTTP status 401: Unauthorized

Hi, I get the following eror when I try to call my WebService (on the local machine) using another Web application (on the local machine) System.Net.WebException: The...

The request failed with HTTP status 401: Unauthorized

I have a WebService in localhost, and the set in the web.config is <add key="WebReference.Service" value="http://localhost/HealthService/Service.asmx"/> and the code to...

The request failed with HTTP status 401: Unauthorized

Hi, I'm trying to add data to NEWS listing But, when I execute the code, it returns the following error: The request failed with HTTP status 401: Unauthorized I'm...


All times are GMT. The time now is 05:37 AM. | Privacy Policy