#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2017
    Posts
    2
    Rep Power
    0

    Possible legacy issue


    Using the following lines of code in ASP Classic:



    Set objRequest = server.createobject("MSXML2.XMLHTTP.6.0")

    With objRequest

    .open "GET", "https://www.khyky.org.gr/doctorapi/", False

    .setRequestHeader "Authorization", "Basic " & Base64Encode

    .send

    'End With



    I get the following results:



    On a pc with Win10 and IIS10 the connection can be easily established and I consume the web service.
    On a server pc with win2008R2 or win2012 with IIS 7.5 or IIS8 , respectively, I receive the following error, which can be seen at the attached Failed Request Tracing Log.


    All the certificates needed for this connection are correctly installed, yet the following error takes place : «msxml6.dll error '80004004' Operation aborted»



    Now If I change this line of code

    Set objRequest = server.createobject("MSXML2.XMLHTTP.6.0")

    with this one

    Set objRequest = server.createobject("ServerMSXML2.XMLHTTP.6.0")



    I receive a different message and the connection cannot be established with any of the above 3 system setups that I’ve described. The error says : «msxml6.dll error ‘80072f0c’ A certificate is required to complete client authentication».



    Any advice would be highly appreciated, since I think I might have come across a legacy bug.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,545
    Rep Power
    4542
    I don't know the answer. Google turned up this FAQ that may or may not help you out. https://support.microsoft.com/en-us/...-serverxmlhttp

    By the way, if you use the forum CODE tags around posted code, it makes it easier for everyone to read.
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2017
    Posts
    2
    Rep Power
    0
    Originally Posted by Doug G
    I don't know the answer. Google turned up this FAQ that may or may not help you out. https://support.microsoft.com/en-us/...-serverxmlhttp

    By the way, if you use the forum CODE tags around posted code, it makes it easier for everyone to read.
    I figured that i would come up to a dead end.

    From your knowledge though, and since you are a moderator, what could be causing the problem? I know that the code works because it runs perfectly on a win 10 machine with the
    respective iis version. On the servers i metnion it's a different issue. Your google result was one of my first readings on my quest for the answer. Anyway, since you mention that you don't know the answer
    i guess that you wouldn't want to give it a shot anyway. thanks anyhow.
  6. #4
  7. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,545
    Rep Power
    4542
    Sorry, I used to use classic asp but when NET appeared I left MS web technologies behind, over 10 years ago. I'd try to help, but I don't have access to any classic asp web servers, now I only have apache servers available for testing.

    I can only speculate that recently there have been changes to acceptable TLS/SSL encryptions. Perhaps w10/iis10 enforces a newer version of encryption than the older servers.

    I also read there is a MSXML3 in existence, maybe that object needs to be upgraded. All just guesses, though.
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo