473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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(Unauthorize d.)

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.
Jan 4 '08 #1
1 2328
On Jan 4, 1:36 pm, gnewsgroup <gnewsgr...@gma il.comwrote:
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(Unauthorize d.)

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.my company.com

[Issuer]
CN=mercury01.my company.com

[Serial Number]
1FED32A445751AB 74F0F89F2743D64 47

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

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

[Thumbprint]
0C58396AA59FB25 07BD3ADB1F6DF7. ..

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(Unauthorize d) exception.
Jan 4 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1758
by: Paul Clinch | last post by:
Has anyone tried the echod-async.py example in m2crypto-0.12/demo/ssl? I am only connecting one client, the echo.py example in the same directory. Although the synchronous and threading examples work ok, the async server goes into an infinite loop:- LOOP: SSL accept: before/accept initialization LOOP: SSL accept: SSLv3 read client hello A LOOP: SSL accept: SSLv3 write server hello A LOOP: SSL accept: SSLv3 write certificate A LOOP: SSL...
3
2603
by: Phillip | last post by:
Some people tipped me off on some possibilities to tackle my https problem. Those have definitely gotten me further in cornering the problem. Thank you. But: No matter what I do to open a webconnection with httpS I always get something in this Area: urllib2.URLError: <urlopen error unknown url type: https>
1
4633
by: Robert | last post by:
I need to run FTP over SSL from windows (not shitty sftp via ssh etc!) as explained on http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html (good variant 3: FTP_TLS ) I tried to learn from M2Crypto's ftpslib.py (uses OpenSSL - not Pythons SSL) and made a wrapper for ftplib.FTP using Pythons SSL. I wrap the cmd socket like:
9
5288
by: Kristijan Marin | last post by:
Hi, I have a project to do, that has to transfer files over SSL/SSH connection.(FTP over SSL or some other method) I searched a lot but didn't find anything usefull :(( Has anyone any clues how to do that ?? Thank you. Kris
8
1871
by: Bob Skutnick | last post by:
Greetings, I'm hoping someone has experienced a problem I'm having: I have an existing ASP application (working fine) that uses an SSL server certificate. My user community is made up of both PC's and Macintosh computers. I've re-written this application in ASP.NET for a number of reasons and now find that my Mac users are having problems with the application. SSL works just fine for PC
1
3231
by: Adil Akram | last post by:
I have created a site shopping cart in ASP.net. I am using ASP session object's SessionID on non SSL connection to track session. While adding products to cart DB I insert product and SessionID in table. All products and cart status pages are on non SSL connection. On checkout to get secure user information I shifted connection to SSL but when shifting to SSL, the SessionID changed (As is this is default behavior of IIS to prevent...
2
3581
by: ALI-R | last post by:
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server. I am trying to call that webservice from a webpart but I get this error which says : System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at RSTreeWebPart.RSTree.reportsList() at RSTreeWebPart.RSTree.RenderWebPart(HtmlTextWriter output)
1
11213
by: Jason Wilson | last post by:
I've been tasked by my boss with configuring a MySQL install that we host for one our partners to support SSL using a commercial certificate. MySQL is installed on Windows 2000 Server. 1st: I know nothing about MySQL. 2nd: What little documentation I was able to find was very cryptic and seems written for LINUX. 3rd: I have found reference to the fact that MySQL needs to be recompiled to support SSL. I have been told that this has...
2
2300
by: campos | last post by:
Hi all, Last time I installed Python 2.5 by default, it didn't support SSL. When I tried to use HTTPS, the following error occured: AttributeError: 'module' object has no attribute 'ssl' In README file: ---------------------------------------------------------------------------------------------- (a) the band-aid fix is to link the _socket module statically rather than dynamically (which is the default).
5
2941
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I admit I am rather confused and frustrated. That being said, I'd like some direction in how exactly I'm supposed to accomplish this. Thanks very much, JK
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.