Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

HELP!  SSL HTTPRequest Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jNorton - 10 Feb 2005 22:21 GMT
I have two servers in a web farm that are (as far as I can tell) configured
exactly the same.  One server works fine when runnin the following code, the
other throws an exception.  The code and execption are:

HttpWebRequest request;
request =
(HttpWebRequest)WebRequest.Create(@"https://wwwcie.ups.com/ups.app/xml/Track");
HttpWebResponse response;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = authXml.Length + requestXml.Length;
StreamWriter requestString = new StreamWriter(request.GetRequestStream());
requestString.Write(authXml + requestXml);
requestString.Close();
request.Timeout = 15000;
response = (HttpWebResponse)request.GetResponse();
using (StreamReader sr = new StreamReader(response.GetResponseStream()))
{
    return sr.ReadToEnd();
}

EXCEPTION:

System.Net.WebException: The underlying connection was closed: Could not
establish secure channel for SSL/TLS. --->
System.TypeInitializationException: The type initializer for
"System.Net.SecureChannel" threw an exception. --->
System.EntryPointNotFoundException: Unable to find an entry point named
EnumerateSecurityPackagesW in DLL security.dll. at
System.Net.NativeNTSSPI.EnumerateSecurityPackagesW(Int32& pkgnum, IntPtr&
arrayptr) at
System.Net.SSPISecureChannelType.EnumerateSecurityPackages(Int32& pkgnum,
IntPtr& arrayptr) at
System.Net.SSPIWrapper.EnumerateSecurityPackages(SSPIInterface SecModule) at
System.Net.SSPIWrapper.GetSupportedSecurityPackages(SSPIInterface SecModule)
at System.Net.SecureChannel..cctor() --- End of inner exception stack trace
--- at System.Net.SecureChannel..ctor(String hostname,
X509CertificateCollection clientCertificates) at
System.Net.TlsStream.Handshake(ProtocolToken message) --- End of inner
exception stack trace --- at System.Net.HttpWebRequest.CheckFinalStatus() at
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at
System.Net.HttpWebRequest.GetRequestStream() at
NSP.Utilities.UPS.processUPSRequest(String requestXml, UPSRequestType type)

Any ideas?
Chris Botha - 11 Feb 2005 01:12 GMT
I guess it is the certificate issue, IE should prompt you to accept the
certificate if you use IE to connect SSL to the bad server.
There are some links down the group in a thread "Cannot access web server
after enable FIPS compliant cryptography" by Jener Silva dated 2/6/2005 2:14

>I have two servers in a web farm that are (as far as I can tell) configured
> exactly the same.  One server works fine when runnin the following code,
[quoted text clipped - 47 lines]
>
> Any ideas?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.