Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler Error: Type 'MSXML2.DOMDocument40' is not defined.
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Compiler Error: Type 'MSXML2.DOMDocument40' is not defined.
Versions des environnements
Environment:
VB 8.0
OS:
Windows Server 2003
Divers
Thread ID:
01133223
Message ID:
01133223
Vues:
194
Hi,

My ASP.NET page retrieves data from another site using
  Dim oDoc As New MSXML2.DOMDocument40
  oDoc.async = False
  Dim oHttp As New MSXML2.XMLHTTP
  ...
  oDoc.LoadXml(sRequest)
  oHttp.open("POST", cURL, False)
  oHttp.send(oDoc)
This works fine on my development machine (XP Pro SP2). Life is good.

I have a dedicated Windows 2003 server running IIS 6.0 that was setup a few months ago. When I deploy my code to the web server and run it, I get an error.

Compiler Error Message: BC30002: Type 'MSXML2.DOMDocument40' is not defined.

The culprit is this line of code:
  Dim oDoc As New MSXML2.DOMDocument40
I installed MSXML4 SP2 on the server but that didn't make any difference. (The file msxml4.dll does exist in the Windows\System32 folder.)

I can compile if I substitute the following code
  Dim oDoc As XmlDocument = New XmlDocument()
or
  Dim oDoc
  oDoc = Server.CreateObject("MSXML2.DOMDocument40")
But in both cases, I get the error: "The parameter is incorrect" on this line
oHttp.send(oDoc)
Does anyone have any suggestions for me? Is there something else that I need to install? Could this be an IIS configuration issue?

Thanks,
Tim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform