Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > The Request Failed with HTTP Status 401: Access Denied

Reply
Thread Tools

The Request Failed with HTTP Status 401: Access Denied

 
 
James
Guest
Posts: n/a
 
      12-09-2003
I have a webservice that returns a simple string. The security for this is
set to windows authentication in IIS (XP Professional) and anonymous access
is .

When I access the webservice from IE there is no problem. But when I try
access it from my windows application I get the above error.

When I look at the IIS log it show the same user name for both requests. IE
request has the status 200 and the Windows app has the status 401.

After seeing another related post, I added the pre-authenticate and now I
get: 405: Method not allowed.

What could be the problem?

Thanks,
James


 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      12-09-2003
I have resolved the issue. I don't know if this is permanent.

The solution:

1. Set the authentication to anonymous access.
2. Right click on the web reference server name and update the reference.
Now the errors are gone.
3. Set the authentication back to Windows.
4. Now Windows authentication works.

Thanks,
James


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The request failed with HTTP status 401: Access Denied jdhavo@yahoo.com ASP .Net Web Services 1 03-22-2006 10:28 PM
The request failed with HTTP status 401: Unauthorized ad ASP .Net 2 02-18-2006 12:11 AM
The request failed with HTTP status 502: Bad Gateway muradmeghani@gmail.com ASP .Net 1 02-06-2006 10:56 PM
The request failed with HTTP status 401: Unauthorized Sachin ASP .Net 2 11-04-2005 09:15 PM
The request failed with HTTP status 403: Access Forbidden Baohua Li ASP .Net Web Services 0 02-06-2004 07:05 PM



Advertisments