473,795 Members | 3,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpWebRequest over SSL

I've exhausted all other avenues with this problem. Any help would be
greatly appreciated.

I am performing a simple POST via a HttpWebRequest object to an SSL URL
(https://). I have attempted this to several different addresses with no
luck. I've tried to supply a new ICertificatePol icy to the
ServicePointMan ager as well. The oddity of the error that I'm receiving is
it's happening before any data is even sent.

Note: This code works wonderfully from within a console application. The
moment it is executed from a web application, it fails. I've tried
impersonation as well with no luck.

--------------------------
HttpWebRequest WebRequest =
(HttpWebRequest )System.Net.Web Request.Create( "https://www.anywherewit hsslsup
port.com");
WebRequest.Keep Alive = true;
WebRequest.Cont entType = "applicatio n/x-www-form-urlencoded";
WebRequest.Meth od = "POST";
WebRequest.Allo wAutoRedirect = false;

string Data = "anything=reall y&itdoesnot=mat ter&whatever=wi llfail";
WebRequest.Cont entLength = Data.Length;

System.IO.Strea m RequestStream = WebRequest.GetR equestStream();
--------------------------

The error occurs on the last line of the above code with the following error
message:

System.EntryPoi ntNotFoundExcep tion: Unable to find an entry point named
EnumerateSecuri tyPackagesW in DLL security.dll.
I'm stumped. Can anyone shed some light on this error? It happens on the
both computers that I've tested it on. Both are Win2K with .NET 1.1.

Thank you in advance,

--
Matt Sollars
ma**@hypersite. net
-------------------
The Hypersite Network
2002 N. Salisbury Blvd.
Suite C
Salisbury, Maryland 21801
T: 410.749.2000
F: 410.219.3400
http://www.hypersite.net
Nov 17 '05 #1
9 4884
Hello Matt,

The error is often caused by mismatched certificate. Generally spekaing, a
certificate is associated with the user ID of the user who installed the
certificate (this is the certificate user); therefore, the certificate is
available only when that user profile is loaded.

ASP.NET is running under machinename/aspnet account. Since you could run
the code successfully in console app and console app use your logged on
user account, I suggest you change asp.net application running account in
machinel.config . You could check processmodel part in machine.config.
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=tr ue

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Matt Sollars" <ma**@hypersite .net>
!Subject: HttpWebRequest over SSL
!Date: Wed, 13 Aug 2003 17:05:19 -0400
!Lines: 53
!Organization: Hypersite
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <Ox************ *@TK2MSFTNGP12. phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 207.204.29.22
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1676 51
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!I've exhausted all other avenues with this problem. Any help would be
!greatly appreciated.
!
!I am performing a simple POST via a HttpWebRequest object to an SSL URL
!(https://). I have attempted this to several different addresses with no
!luck. I've tried to supply a new ICertificatePol icy to the
!ServicePointMa nager as well. The oddity of the error that I'm receiving is
!it's happening before any data is even sent.
!
!Note: This code works wonderfully from within a console application. The
!moment it is executed from a web application, it fails. I've tried
!impersonation as well with no luck.
!
!--------------------------
!HttpWebRequest WebRequest =
!(HttpWebReques t)System.Net.We bRequest.Create ("https://www.anywherewit hsslsu
p
!port.com");
!WebRequest.Kee pAlive = true;
!WebRequest.Con tentType = "applicatio n/x-www-form-urlencoded";
!WebRequest.Met hod = "POST";
!WebRequest.All owAutoRedirect = false;
!
!string Data = "anything=reall y&itdoesnot=mat ter&whatever=wi llfail";
!WebRequest.Con tentLength = Data.Length;
!
!System.IO.Stre am RequestStream = WebRequest.GetR equestStream();
!--------------------------
!
!The error occurs on the last line of the above code with the following
error
!message:
!
! System.EntryPoi ntNotFoundExcep tion: Unable to find an entry point named
!EnumerateSecur ityPackagesW in DLL security.dll.
!
!
!I'm stumped. Can anyone shed some light on this error? It happens on the
!both computers that I've tested it on. Both are Win2K with .NET 1.1.
!
!Thank you in advance,
!
!--
!Matt Sollars
!ma**@hypersite .net
! -------------------
!The Hypersite Network
!2002 N. Salisbury Blvd.
!Suite C
!Salisbury, Maryland 21801
!T: 410.749.2000
!F: 410.219.3400
!http://www.hypersite.net
!
!
!

Nov 17 '05 #2
Thank you, Yanhong.

Your suggestion worked, but I do not understand. I am not sending a
certificate to the remote server. Nor have I installed a certificate on my
local machine. The console application worked under an account with
Administrator privileges but it works under ANY account with those
privileges. I changed my local machine.config file's processModel userName
attribute to "system" and it worked as a web application.

Maybe my understanding of SSL is a bit elementary. Am I to understand that
to communicate with a server via SSL, some certificate is needed (trusted or
not)? And my browser handles that for me when I enter a https address? If
so, how does my browser pull it off if I am logged on as a very restricted
user? What certificate is used; trusted, self-signed? Can I get around
changing my machine.config file to use a system user by creating a
self-signed certificate and installing it under a special account that has
the same rights as the default machine user (ASPNET)?

I understand that this all may be off-topic for this area and may consume
too much of your time. On that note, if you would please refer me to one or
more resources regarding these questions, I would greatly appreciate it.

Thank you again for your time, Yanhong.

Regards,

--
Matt Sollars
ma**@hypersite. net
-------------------
The Hypersite Network
2002 N. Salisbury Blvd.
Suite C
Salisbury, Maryland 21801
T: 410.749.2000
F: 410.219.3400
http://www.hypersite.net

"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:lK******** ******@cpmsftng xa06.phx.gbl...
Hello Matt,

The error is often caused by mismatched certificate. Generally spekaing, a
certificate is associated with the user ID of the user who installed the
certificate (this is the certificate user); therefore, the certificate is
available only when that user profile is loaded.

ASP.NET is running under machinename/aspnet account. Since you could run
the code successfully in console app and console app use your logged on
user account, I suggest you change asp.net application running account in
machinel.config . You could check processmodel part in machine.config.
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=tr ue

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #3
Hello Matt,

You are welcome. I am glad to be of assistance. :)

To answer your qeuestion, I think we need to start from the process of the Secure Sockets Layer (SSL) Handshake. The
Secure Sockets Layer (SSL) protocol uses a combination of public-key and symmetric-key encryption. An SSL session
always begins with an exchange of messages called the SSL handshake. The handshake allows the server to authenticate
itself to the client by using public-key techniques, and then allows the client and the server to cooperate in the creation of
symmetric keys used for rapid encryption, decryption, and tamper detection during the session that follows. Optionally, the
handshake also allows the client to authenticate itself to the server.

For details, I suggest you refer to KB article "Descriptio n of the Secure Sockets Layer (SSL) Handshake"
at http://support.microsoft.com/default...b;EN-US;257591

Also, For additional information, refer to the following articles in the Microsoft Knowledge Base:
Description of the Client Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257586
Description of the Server Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257587

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Matt Sollars" <ma**@hypersite .net>
!References: <Ox************ *@TK2MSFTNGP12. phx.gbl> <lK************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: HttpWebRequest over SSL
!Date: Thu, 14 Aug 2003 09:14:34 -0400
!Lines: 66
!Organization: Hypersite
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <uH************ **@TK2MSFTNGP10 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 207.204.29.22
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1678 47
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Thank you, Yanhong.
!
!Your suggestion worked, but I do not understand. I am not sending a
!certificate to the remote server. Nor have I installed a certificate on my
!local machine. The console application worked under an account with
!Administrator privileges but it works under ANY account with those
!privileges. I changed my local machine.config file's processModel userName
!attribute to "system" and it worked as a web application.
!
!Maybe my understanding of SSL is a bit elementary. Am I to understand that
!to communicate with a server via SSL, some certificate is needed (trusted or
!not)? And my browser handles that for me when I enter a https address? If
!so, how does my browser pull it off if I am logged on as a very restricted
!user? What certificate is used; trusted, self-signed? Can I get around
!changing my machine.config file to use a system user by creating a
!self-signed certificate and installing it under a special account that has
!the same rights as the default machine user (ASPNET)?
!
!I understand that this all may be off-topic for this area and may consume
!too much of your time. On that note, if you would please refer me to one or
!more resources regarding these questions, I would greatly appreciate it.
!
!Thank you again for your time, Yanhong.
!
!Regards,
!
!--
!Matt Sollars
!ma**@hypersite .net
! -------------------
!The Hypersite Network
!2002 N. Salisbury Blvd.
!Suite C
!Salisbury, Maryland 21801
!T: 410.749.2000
!F: 410.219.3400
!http://www.hypersite.net
!
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:lK******* *******@cpmsftn gxa06.phx.gbl.. .
!Hello Matt,
!
!The error is often caused by mismatched certificate. Generally spekaing, a
!certificate is associated with the user ID of the user who installed the
!certificate (this is the certificate user); therefore, the certificate is
!available only when that user profile is loaded.
!
!ASP.NET is running under machinename/aspnet account. Since you could run
!the code successfully in console app and console app use your logged on
!user account, I suggest you change asp.net application running account in
!machinel.confi g. You could check processmodel part in machine.config.
!http://msdn.microsoft.com/library/en...cessmodelsecti
!on.asp?frame=t rue
!
!Hope it helps.
!
!Best regards,
!Yanhong Huang
!Microsoft Online Partner Support
!
!Get Secure! ¨C www.microsoft.com/security
!This posting is provided "AS IS" with no warranties, and confers no rights.
!
!
!
Nov 17 '05 #4
Thanks again for all your help, Yanhong. I only have one more inquiry. Would
I be able to get around all of this by simply signing the assembly?

Regards,

Matt
"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:OT******** ******@cpmsftng xa06.phx.gbl...
Hello Matt,

You are welcome. I am glad to be of assistance. :)

To answer your qeuestion, I think we need to start from the process of the
Secure Sockets Layer (SSL) Handshake. The
Secure Sockets Layer (SSL) protocol uses a combination of public-key and
symmetric-key encryption. An SSL session
always begins with an exchange of messages called the SSL handshake. The
handshake allows the server to authenticate
itself to the client by using public-key techniques, and then allows the
client and the server to cooperate in the creation of
symmetric keys used for rapid encryption, decryption, and tamper detection
during the session that follows. Optionally, the
handshake also allows the client to authenticate itself to the server.

For details, I suggest you refer to KB article "Descriptio n of the Secure
Sockets Layer (SSL) Handshake"
at http://support.microsoft.com/default...b;EN-US;257591

Also, For additional information, refer to the following articles in the
Microsoft Knowledge Base:
Description of the Client Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257586
Description of the Server Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257587

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #5
Thanks again for all your help, Yanhong. I only have one more inquiry. Would
I be able to get around all of this by simply signing the assembly?

Regards,

Matt
"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:OT******** ******@cpmsftng xa06.phx.gbl...
Hello Matt,

You are welcome. I am glad to be of assistance. :)

To answer your qeuestion, I think we need to start from the process of the
Secure Sockets Layer (SSL) Handshake. The
Secure Sockets Layer (SSL) protocol uses a combination of public-key and
symmetric-key encryption. An SSL session
always begins with an exchange of messages called the SSL handshake. The
handshake allows the server to authenticate
itself to the client by using public-key techniques, and then allows the
client and the server to cooperate in the creation of
symmetric keys used for rapid encryption, decryption, and tamper detection
during the session that follows. Optionally, the
handshake also allows the client to authenticate itself to the server.

For details, I suggest you refer to KB article "Descriptio n of the Secure
Sockets Layer (SSL) Handshake"
at http://support.microsoft.com/default...b;EN-US;257591

Also, For additional information, refer to the following articles in the
Microsoft Knowledge Base:
Description of the Client Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257586
Description of the Server Authentication Process During the SSL Handshake
http://support.microsoft.com/default...b;EN-US;257587

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #6
Hello Matt,

I suspect it, since the problem is that you could only connect to SSL using a domain account instead of machine\aspnet
account. But you could test first.

Please refer to:
"HOW TO: Secure an ASP.NET Application Using Client-Side Certificates"
http://support.microsoft.com/?id=315588

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows 2000"
http://support.microsoft.com/?id=307267

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows Server 2003"
http://support.microsoft.com/?id=324284

Hope them help.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Matt Sollars" <ma**@hypersite .net>
!References: <Ox************ *@TK2MSFTNGP12. phx.gbl> <lK************ **@cpmsftngxa06 .phx.gbl>
<uH************ **@TK2MSFTNGP10 .phx.gbl> <OT************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: HttpWebRequest over SSL
!Date: Mon, 18 Aug 2003 10:31:07 -0400
!Lines: 47
!Organization: Hypersite
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <O0************ **@TK2MSFTNGP10 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 207.204.29.22
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1687 66
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Thanks again for all your help, Yanhong. I only have one more inquiry. Would
!I be able to get around all of this by simply signing the assembly?
!
!Regards,
!
!Matt
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:OT******* *******@cpmsftn gxa06.phx.gbl.. .
!Hello Matt,
!
!You are welcome. I am glad to be of assistance. :)
!
!To answer your qeuestion, I think we need to start from the process of the
!Secure Sockets Layer (SSL) Handshake. The
!Secure Sockets Layer (SSL) protocol uses a combination of public-key and
!symmetric-key encryption. An SSL session
!always begins with an exchange of messages called the SSL handshake. The
!handshake allows the server to authenticate
!itself to the client by using public-key techniques, and then allows the
!client and the server to cooperate in the creation of
!symmetric keys used for rapid encryption, decryption, and tamper detection
!during the session that follows. Optionally, the
!handshake also allows the client to authenticate itself to the server.
!
!For details, I suggest you refer to KB article "Descriptio n of the Secure
!Sockets Layer (SSL) Handshake"
!at http://support.microsoft.com/default...b;EN-US;257591
!
!Also, For additional information, refer to the following articles in the
!Microsoft Knowledge Base:
!Description of the Client Authentication Process During the SSL Handshake
!http://support.microsoft.com/default...b;EN-US;257586
!Description of the Server Authentication Process During the SSL Handshake
!http://support.microsoft.com/default...b;EN-US;257587
!
!Hope it helps.
!
!Best regards,
!Yanhong Huang
!Microsoft Online Partner Support
!
!Get Secure! - www.microsoft.com/security
!This posting is provided "AS IS" with no warranties, and confers no rights.
!
!
!
Nov 17 '05 #7
Hello Matt,

I suspect it, since the problem is that you could only connect to SSL using a domain account instead of machine\aspnet
account. But you could test first.

Please refer to:
"HOW TO: Secure an ASP.NET Application Using Client-Side Certificates"
http://support.microsoft.com/?id=315588

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows 2000"
http://support.microsoft.com/?id=307267

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows Server 2003"
http://support.microsoft.com/?id=324284

Hope them help.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Matt Sollars" <ma**@hypersite .net>
!References: <Ox************ *@TK2MSFTNGP12. phx.gbl> <lK************ **@cpmsftngxa06 .phx.gbl>
<uH************ **@TK2MSFTNGP10 .phx.gbl> <OT************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: HttpWebRequest over SSL
!Date: Mon, 18 Aug 2003 10:31:07 -0400
!Lines: 47
!Organization: Hypersite
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <O0************ **@TK2MSFTNGP10 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 207.204.29.22
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1687 66
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Thanks again for all your help, Yanhong. I only have one more inquiry. Would
!I be able to get around all of this by simply signing the assembly?
!
!Regards,
!
!Matt
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:OT******* *******@cpmsftn gxa06.phx.gbl.. .
!Hello Matt,
!
!You are welcome. I am glad to be of assistance. :)
!
!To answer your qeuestion, I think we need to start from the process of the
!Secure Sockets Layer (SSL) Handshake. The
!Secure Sockets Layer (SSL) protocol uses a combination of public-key and
!symmetric-key encryption. An SSL session
!always begins with an exchange of messages called the SSL handshake. The
!handshake allows the server to authenticate
!itself to the client by using public-key techniques, and then allows the
!client and the server to cooperate in the creation of
!symmetric keys used for rapid encryption, decryption, and tamper detection
!during the session that follows. Optionally, the
!handshake also allows the client to authenticate itself to the server.
!
!For details, I suggest you refer to KB article "Descriptio n of the Secure
!Sockets Layer (SSL) Handshake"
!at http://support.microsoft.com/default...b;EN-US;257591
!
!Also, For additional information, refer to the following articles in the
!Microsoft Knowledge Base:
!Description of the Client Authentication Process During the SSL Handshake
!http://support.microsoft.com/default...b;EN-US;257586
!Description of the Server Authentication Process During the SSL Handshake
!http://support.microsoft.com/default...b;EN-US;257587
!
!Hope it helps.
!
!Best regards,
!Yanhong Huang
!Microsoft Online Partner Support
!
!Get Secure! - www.microsoft.com/security
!This posting is provided "AS IS" with no warranties, and confers no rights.
!
!
!
Nov 17 '05 #8
Thank you, Yanhong. I shall look into it. Your input has been valuable.

Regards,

Matt
"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:4m******** *****@cpmsftngx a06.phx.gbl...
Hello Matt,

I suspect it, since the problem is that you could only connect to SSL using
a domain account instead of machine\aspnet
account. But you could test first.

Please refer to:
"HOW TO: Secure an ASP.NET Application Using Client-Side Certificates"
http://support.microsoft.com/?id=315588

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows 2000"
http://support.microsoft.com/?id=307267

"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows Server
2003"
http://support.microsoft.com/?id=324284

Hope them help.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #9
Hello Matt,

You are welcome. Thanks very much for participating the community.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Matt Sollars" <ma**@hypersite .net>
!References: <Ox************ *@TK2MSFTNGP12. phx.gbl> <lK************ **@cpmsftngxa06 .phx.gbl>
<uH************ **@TK2MSFTNGP10 .phx.gbl> <OT************ **@cpmsftngxa06 .phx.gbl> <O0W
$6***********@T K2MSFTNGP10.phx .gbl> <4m************ *@cpmsftngxa06. phx.gbl>
!Subject: Re: HttpWebRequest over SSL
!Date: Tue, 19 Aug 2003 13:53:37 -0400
!Lines: 36
!Organization: Hypersite
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <OM************ **@TK2MSFTNGP12 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 207.204.29.22
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1692 51
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Thank you, Yanhong. I shall look into it. Your input has been valuable.
!
!Regards,
!
!Matt
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:4m******* ******@cpmsftng xa06.phx.gbl...
!Hello Matt,
!
!I suspect it, since the problem is that you could only connect to SSL using
!a domain account instead of machine\aspnet
!account. But you could test first.
!
!Please refer to:
!"HOW TO: Secure an ASP.NET Application Using Client-Side Certificates"
!http://support.microsoft.com/?id=315588
!
!"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows 2000"
!http://support.microsoft.com/?id=307267
!
!"HOW TO: Secure XML Web Services with Secure Socket Layer in Windows Server
!2003"
!http://support.microsoft.com/?id=324284
!
!Hope them help.
!
!Best regards,
!Yanhong Huang
!Microsoft Online Partner Support
!
!Get Secure! - www.microsoft.com/security
!This posting is provided "AS IS" with no warranties, and confers no rights.
!
!
!
Nov 17 '05 #10

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

Similar topics

5
12346
by: Dan Battagin | last post by:
Is there a known bug with the interaction between the HttpWebRequest and the ThreadPool? I current spawn several HttpWebRequest's using BeginGetResponse, and they work for a while, using worker threads from the ThreadPool. However, eventually (relatively quickly) there become fewer and fewer available worker threads in the pool, until there are 0 and a System.InvalidOperationException occurs with the message: "There were not enough free...
10
19362
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
9
8194
by: Mike Cronin via DotNetMonster.com | last post by:
Hi there, Can anyone tell me what level of encryption is used when making an HTTPS POST request through an instance of the System.Net.HttpWebRequest object? Thanks much in advance! Mike Cronin Data On Call - Programmer
16
12648
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the MSHTML objects to really load the HTML and request all of the images on site? string lcUrl = http://www.cnn.com; // *** Establish the request
1
2611
by: sfoxover | last post by:
Hi, Could someone please give me some suggestions on how to make this class robust. I need to be able to handle around 20 similtanious requests to this class which causes a web browser to display a waiting message while it requests XML data from a third party server. Some requests can take around 30 seconds. Usually the first time I do the request it always works. If I try again without closing the web browser it will fail sometimes....
6
4213
by: Mike Koerner | last post by:
Hi, I am having problems setting the HttpWebRequest Date header. I understand that it is a restricted header and I do receive the "This header must be modified with the appropriate property." Is there a way to make sure that the date header is sent over or a way to work around this exception? Here's a sample of the code:
16
11056
by: Cheung, Jeffrey Jing-Yen | last post by:
I have a windows form application that generates a request, downloads an image, and waits the user to enter in login info. Unfortunately, this image is dynamic and based on session data. I have read documents on the CookieCollection property of HttpWebRequest. Currently, I have the functionality in my code to be able to accept cookies, and return them upon a new HttpWebRequest; however, upon further inspection of the returning...
0
1562
by: boxboy | last post by:
Hi, I'm writing a console application and am having a problem with HttpWebRequest when posting data to a webserver. A "System.Net.WebException: The server committed a protocol violation" is always being thrown when getting the response from a specific host. I'm pretty sure the framework's implementation doesn't like the formating or status code of the returned response header. It throws the exception without giving me a way of handling it...
3
4931
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to one post for every 10 seconds the client start getting error 403 'forbidden' from the webserver after a short period of time. The webserver is IIS. The choking of the client/server communication when doing high frequency posting is due to that we...
1
8048
by: Proogeren | last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted below. I do not add any www-authentication header here so I was wondering if anyone knows how to remove it. I have used almost 2 days trying to figure this out so help would be highly appreciated. CORRECT No proxy-authenticate header is present no...
0
9672
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
10436
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
10213
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...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
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
6780
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();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
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
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.