Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Mauricio Moya (Arquesoft) on July 08, 2014, 11:52:16 pm

Title: Automation server can't create object in Windows 8
Post by: Mauricio Moya (Arquesoft) 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.
Title: Re: Automation server can't create object in Windo
Post by: Mauricio Moya (Arquesoft) 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" );