Author Topic: Automation server can't create object in Windows 8  (Read 5557 times)

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Automation server can't create object in Windows 8
« on: July 08, 2014, 11:52:16 pm »
I had some JScripts running perfectly in my previous PC (Windows 7, 32 bits, EA 10). Now, I'm testing them in my new PC (Windows 8.1, 64 bits, EA 11) and it throws and error in the following line of code:

var xmlDOM = new ActiveXObject( "MSXML2.DOMDocument.4.0" );

The error says: "Automation server can't create object".

Note I'm using the same script as shown in the EA Help, under "Example Template Fragment Script".

I also have .NET 4 installed in both 32 and 64 bits environments.
« Last Edit: July 08, 2014, 11:56:42 pm by mmoya »

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: Automation server can't create object in Windo
« Reply #1 on: July 11, 2014, 10:29:50 pm »
SOLVED:

Replace

var xmlDOM = new ActiveXObject( "MSXML2.DOMDocument.4.0" );

with

var xmlDOM = new ActiveXObject( "Microsoft.XMLDOM" );