Stephen Oberauer
Stephen Oberauer

Reputation: 5385

How can I enable ActiveX in IE8 on Windows Server 2008?

I've created a COM assembly using C#. I set my IE 8 browser settings to low on my XP development PC, and I can use JavaScript to successfully run the methods.

If I copy the assembly to a Windows Server 2008 VM, even if I set IE's security levels to low, disable "Protected Mode" and run IE 8 as Administrator, I still get error 429: "Automation server can't create object."

I've created a test application to ensure that using regasm worked, and that works fine.

Any suggestions as to how to get this working in IE 8 in Windows Server 2008 would be appreciated.

Thanks :)

Upvotes: 2

Views: 3143

Answers (1)

John Koerner
John Koerner

Reputation: 38087

Are you sure your JS has the COM object name spelled correctly? I just tested with low settings on Trusted Sites and was able to get the FSO working.

<HTML>
  <head>
    <script>
      function buttonClick()
      {
        alert('a');
        var x = new ActiveXObject("Scripting.FileSystemObject");
        alert('b');
      }
    </script>
  </head>
  <body>
    <input type="button" id="button1" onClick="buttonClick()"/>
  </body>
</HTML>

Upvotes: 1

Related Questions