Re: Unauthorised error

Mark Brackett <[email protected]> Thu, 20 Dec 2007 08:56:18 -0500
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
There's different 401 subcodes that may help. Eg., I think 401.3 is an
ACL error, 401.5 is an external auth error, etc. I'm not sure if
WebException gives you the subcode, but Fiddler would show it to you.
That may help.

Off hand, the only things I can think of are: IP address restrictions,
or a proxy server in between. I'd start sniffing traffic with Fiddler
myself, I think.

--MB

> -----Original Message-----
> From: Discussion of building .NET applications targeted for the Web
> [mailto:[email protected]] On Behalf Of Dean Cleaver
> Sent: Wednesday, December 19, 2007 7:02 PM
> To: [email protected]
> Subject: Re: [DOTNET-WEB] Unauthorised error
> 
> The remote web service must be working, because I can connect fine
from
> my desktop in design mode, but from the web server (our web server
> calling the remote web service - the web service is hosted in another
> country) I get this exception:
> 
> 
> System.Net.WebException: The request failed with HTTP status 401:
> Unauthorized.
> 
> 
> 
> Dino
> 
> 
> ________________________________
> 
> From: Discussion of building .NET applications targeted for the Web on
> behalf of Shawn Wildermuth
> Sent: Thu 12/20/2007 12:44 PM
> To: [email protected]
> Subject: Re: [DOTNET-WEB] Unauthorised error
> 
> 
> 
> Any chance the issue isn't the Web Server security but that SQL Server
> 2005
> isn't opened up to accept connections from non-local clients?
> 
> Thanks,
> 
> Shawn Wildermuth
> http://adoguy.com <http://adoguy.com/>
> http://wildermuthconsulting.com <http://wildermuthconsulting.com/>
> Microsoft MVP (C#), MCSD.NET, Author and Speaker
> 
> The Silverlight Tour is coming to a city near you!
> 
> 
> -----Original Message-----
> From: Discussion of building .NET applications targeted for the Web
> [mailto:[email protected]] On Behalf Of Dean Cleaver
> Sent: Wednesday, December 19, 2007 5:33 PM
> To: [email protected]
> Subject: [DOTNET-WEB] Unauthorised error
> 
> I'm connecting to a web service using network credentials, but have a
> very
> strange error occurring. On my desktop and on the SQL Server machine,
> this
> program will connect correctly - but on the web server, it will fail
> with a
> 401 error. I've double checked and re checked everything, and all
> credentials are correct - but it still fails. Same exe file works fine
> from
> other machines - any ideas on what to look at?
> 
> Dino
> 
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
> <http://www.develop.com/>
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com <http://discuss.develop.com/>
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> <http://www.develop.com/>
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com <http://discuss.develop.com/>
> 
> 
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com