We are running it as administrator. The funny thing is that we can run it on our 2003 server just fine. We are using a client certificate to access the site. This is the code we are using
// Create internet connectio
m_hInternet = InternetOpen("CreditBureau",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);
// Parse UR
strURL = m_strURL
AfxParseURL((LPCTSTR)strURL,dwServType,strServer,strRequestPost,nPort)
// Create internet sessio
m_hSession = InternetConnect(m_hInternet,strServer,nPort,NULL,NULL,INTERNET_SERVICE_HTTP,0,0)
If that all goes well we do the following
m_hRequest = HttpOpenRequest(m_hSession,strVerb,strRequestPost,NULL,"",NULL,INTERNET_FLAG_RELOAD|INTERNET_FLAG_SECURE|INTERNET_FLAG_IGNORE_CERT_CN_INVALID,m_nReID)
----- Stephen Sulzer wrote: ----
Error 12157 is a (unhelpful) WinInet error code meaning that some proble
was encountered with the security/SSL subsystem. The first thing to do is t
check in the Event Viewer. Sometimes the security subsystem will log a
error message that describes what went wrong. There is probably somethin
wrong with the client certificate on your 2003 server. Perhaps the use
account under which your application runs on the 2003 server does not hav
access permissions to use the client certificate, for example
Post by Sam DI am getting an odd error when I try to run an application on a Window
2003 Small Business server. The application utilizes a client certificate t
authenticate to a secured website via a port other than 443. It works fin
in our office on Windows 2000 but not on the server 2003. We keep getting
12157 error but nothing I can find on microsoft tells me why I would ge
that error