Reply
Highlighted
Member
Posts: 5
Registered: ‎11-08-2010
Accepted Solution

Classic ASP sample code for AIM Error

[ Edited ]

Hi,

 

I am trying to run a sample code for the AIM Classic ASP.  I did not change the code except for the values for x_login and x_tran_key.

 

The error message I'm getting is:

 

msxml3.dll error '800c0008'

System error: -2146697208.

 

 

Now, I've also tried to run a sample for the PHP version and that works fine.

 

What am I missing for the ASP sample?

 

 

 

Thanks,

Won


Accepted Solutions
Highlighted
Solution
Accepted by topic author wyang
‎08-21-2015 01:58 AM
Contributor
Posts: 10
Registered: ‎10-29-2010

Re: Classic ASP sample code for AIM Error

[ Edited ]

Sorry, version 3 doesn't support SSL....use this one:

 

"MSXML2.ServerXMLHTTP.4.0"

 

If you still get the error, you can try using the IServerXMLHTTPRequest setOption method  to set this flag:

 

"SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS"

 

CAVEAT: I don't fully know the ramifications of setting this flag.  Do you're homework on it to make sure it doesn't affect anything else in your app.

 

View solution in original post


All Replies
Highlighted
Trusted Contributor
Posts: 451
Registered: ‎08-21-2009

Re: Classic ASP sample code for AIM Error

Hi Won,

 

This could be related to the server you are using. Try changing the following line of code in the sample:

 

Set objRequest = Server.CreateObject("Microsoft.XMLHTTP")

 

to

 

Set objRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")

 

 

Thank you,

 

Elaine

Highlighted
Contributor
Posts: 10
Registered: ‎10-29-2010

Re: Classic ASP sample code for AIM Error

Allow me to also recommend that you use "MSXML2.ServerXMLHTTP.3.0" for ASP pages. 

 

 

Highlighted
Member
Posts: 5
Registered: ‎11-08-2010

Re: Classic ASP sample code for AIM Error

Hey, thanks so much for your help, Elaine!  But unfortunately I'm getting a different error message now with your suggestion:

 

msxml3.dll error '80072f0d'

The certificate authority is invalid or incorrect

 

Thanks,

Won


Highlighted
Member
Posts: 5
Registered: ‎11-08-2010

Re: Classic ASP sample code for AIM Error

Hi, jlowery

 

I tried your method too, but getting same error as above with Elaine's...

 

Thanks,

Won

Highlighted
Solution
Accepted by topic author wyang
‎08-21-2015 01:58 AM
Contributor
Posts: 10
Registered: ‎10-29-2010

Re: Classic ASP sample code for AIM Error

[ Edited ]

Sorry, version 3 doesn't support SSL....use this one:

 

"MSXML2.ServerXMLHTTP.4.0"

 

If you still get the error, you can try using the IServerXMLHTTPRequest setOption method  to set this flag:

 

"SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS"

 

CAVEAT: I don't fully know the ramifications of setting this flag.  Do you're homework on it to make sure it doesn't affect anything else in your app.

 

Highlighted
Member
Posts: 5
Registered: ‎11-08-2010

Re: Classic ASP sample code for AIM Error

jlowery,

 

Thanks again for your help.  I didn't really know how to set the flag variable you suggested, so I did some research and figured out a way.  I've modified the code a little and was able to get it to work!!  Thanks for ALL your help!!

 

 

 

 

CONST SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2;
CONST SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056;
Set objRequest = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
 objRequest.open "POST", post_url, false
 objRequest.setOption SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
 objRequest.send post_string
 post_response = objRequest.responseText
Set objRequest = nothing

 

Highlighted
Member
Posts: 9
Registered: ‎04-30-2012

Re: Classic ASP sample code for AIM Error

Were you coding without a SSL certificate so that is why you got the error earlier?