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 :)
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.