Can't Create Object-MSXML2.ServerXMLHTTP [Answered]RSS

8 replies

Last post Jan 29, 2010 07:46 AM by VorlonShadow

  • Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 08:37 AM|G00ber5|LINK

    I recently had to move my development apps from a web server to my local XP Pro machine. These worked fine before, but I keep running into errors regarding activex controls now.  Here is the latest one.  Here's the code:

        url = "http://www.somesite.com/filefile.txt"
        set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
        xmlhttp.open "GET", url, false
        xmlhttp.send ""
        cWinVer = xmlhttp.responseText
        set xmlhttp = nothing

    When I execute this on my machine,I get the error:

    Microsoft VBScript runtime (0x800A01AD)
    ActiveX component can't create object: 'MSXML2.ServerXMLHTTP'

    This works just fine on our production server, which is WS03, and another server, which is WS08.  Can anyone tell me how to fix this?

    Thanks,
    Jesse

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 03:26 PM|dmcdivitt|LINK

    In the registry look up "MSXML2.ServerXMLHTTP" at classes root, and obtain the CLSID value. Go to CLSID\{whatever} at classes root and obtain the file name from InProcServer32. Go to that file on your system and add the ASPNET user to the file in properties/security. If on a domain add the ASPNET user from the local machine and not the domain. That should fix the problem. If not, give the ASPNET user permission at each of the keys mentioned above in the registry.

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 03:41 PM|VorlonShadow|LINK

    I was not able to find "MSXML2.ServerXMLHTTP" in the classes root location.  I did a search, and found several instances of this.  I found the msxml2.dll and msxml3.dll files in the c:\windows\system32 folder.  I added the asp user to the permissions for those files, but that did not solve the problem. 

    I have actually done several things through out the day, and I am now getting an "Invalid class string" error now. 

    Any other ideas?

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 04:08 PM|G00ber5|LINK

    Tried all the things in the classicasp.aspfaq link

    1. The control is registered.  In fact, with it not registered, QuickBooks will not start.  It gives me an error that only "regsvr32 msxml4.dll" resolves

    2. I haven't "fat-fingered" the string.  The same exact string works perfectly on a WS03 or WS08 server.

    3. The object is installed, otherwise, QB would not work.

    4. corrupt MDAC - Not sure about this one.  I don't "think" this is a data related component, but even if it is, it seems to work fine w/ QB, why not IIS?

    5. "using an MSWC or IIS sample component" -- Don't think that's what this is.

    This almost seems to be a permissions issue to me, but I'm not sure.

    Jesse

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 05:02 PM|vijaybhatter|LINK

     How about trying:

     


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

    Vijay Bhatter,
    Founder of India-Forums.com (Top 2500 sites of the World as per Alexa)
    Cyberax - Web Development Company
  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 05:43 PM|VorlonShadow|LINK

    >Set loXmlHTTP = Server.CreateObject("Microsoft.XMLHTTP")

    Tried that already, that didn't work either.

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 28, 2010 05:50 PM|VorlonShadow|LINK

    FINALLY FIXED IT.

    I don't understand it, but before when I was looking for Msxml2.ServerXMLHTTP in the registry, it was not there, but I've been trying stuff off and on all day, and now it is there.  So, I set the permissions on it to include the IUSR_... account,  and I'm in b'ness now!

    Thanks for the help!

  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 29, 2010 02:18 AM|vijaybhatter|LINK

    Well glad to hear that it got fixed. Any idea on what could have fixed the issue?

    Cheers,

     

    Vijay Bhatter,
    Founder of India-Forums.com (Top 2500 sites of the World as per Alexa)
    Cyberax - Web Development Company
  • Re: Can't Create Object-MSXML2.ServerXMLHTTP

    Jan 29, 2010 07:46 AM|VorlonShadow|LINK

    My personal thoughts are that there were a bunch of missing registry entries.  Using the repair/install msxml utility probably re-created those entries, so when I went back in, I saw them and was then able to set the permissions, which is what solved it in the end, but the missing registry entries were the issue to begin with, I think.