开发者

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 Admini开发者_运维百科strator, 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 :)


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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜