Error: Automation server can'nt create object

If you are getting error "Automation server can'nt create object" while creating activeX

var shell = new ActiveXObject("");

It could be due to security settings of your web browser. So to fix this error choose Internet Options from Tools menue and go to Security tab, now choose internet zone and click on Custom level...button. Now, in the security settings window go to "ActiveX controls and Plug-ins" section and enable "Initialize and script ActiveX controls not marked as safe for scripting" and "Run ActiveX controls and plug-ins" options. Enable same options for Local intranet zone also.

Now you should be able to create object.


Anonymous said...

Hey do you know how to solve if this error occurs while creating a automation object to a dll in a client machine like below...
var Object = GetObject("C:\\WINNT\\SYSTEM32\\TestCleanDLL.dll");

Please revert also to

Thanks in advance

Anonymous said...

can you post your code snippet and the detail of the error you are getting.