PC Review


Reply
Thread Tools Rate Thread

401 (Unauthorized) while SSL-ing in code-behind

 
 
gnewsgroup
Guest
Posts: n/a
 
      4th Jan 2008
In my web application, I need to access a simple web site on a remote
host. That web site only allows Integrated Windows Authentication.
So, in my web application, I collect user name, password and domain
info and pass it to that remote web site.

I keep getting this Exception:

The remote server returned an error: 401(Unauthorized.)

Whereas, I can check out that website just fine in IE or FireFox by
entering my credentials. My complete code for my Login.aspx page is
available at the following address.

http://gnewsgroup.googlepages.com/ss...eincode-behind

I am not sure where I am wrong. Many thanks if you could share a
little insights of yours into this problem.

BTW, I googled, and it seems there is very limited resource about this
problem.
 
Reply With Quote
 
 
 
 
gnewsgroup
Guest
Posts: n/a
 
      4th Jan 2008
On Jan 4, 1:36 pm, gnewsgroup <gnewsgr...@gmail.com> wrote:
> In my web application, I need to access a simple web site on a remote
> host. That web site only allows Integrated Windows Authentication.
> So, in my web application, I collect user name, password and domain
> info and pass it to that remote web site.
>
> I keep getting this Exception:
>
> The remote server returned an error: 401(Unauthorized.)
>
> Whereas, I can check out that website just fine in IE or FireFox by
> entering my credentials. My complete code for my Login.aspx page is
> available at the following address.
>
> http://gnewsgroup.googlepages.com/ss...eincode-behind
>
> I am not sure where I am wrong. Many thanks if you could share a
> little insights of yours into this problem.
>
> BTW, I googled, and it seems there is very limited resource about this
> problem.


Oh, BTW, when I debug the code in VS2005, I could actually see the
info of the remote site's certificate like so:

certificate = {[Subject]
CN=mercury01.mycompany.com

[Issuer]
CN=mercury01.mycompany.com

[Serial Number]
1FED32A445751AB74F0F89F2743D6447

[Not Before]
9/14/2007 2:42:32 PM

[Not After]
9/13/2008 8:42:32 PM

[Thumbprint]
0C58396AA59FB2507BD3ADB1F6DF7...

And I verified again and again that I am using the correct username,
password and domain. But still, every time, I get this annoying
401(Unauthorized) exception.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Deny access to VBA code for unauthorized users flummi Microsoft Excel Misc 2 25th Mar 2006 10:30 AM
unauthorized Product Code just2funny General Discussion 4 3rd Jul 2005 04:23 PM
unauthorized use Kelson Roberts Microsoft Windows 2000 Networking 1 27th Jul 2004 03:30 AM
HttpWebRequest & (401) Unauthorized http status code =?Utf-8?B?UG1jZw==?= Microsoft ASP .NET 0 21st Jun 2004 01:55 PM
401 Unauthorized Alex Windows XP Accessibility 0 2nd Aug 2003 01:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 PM.