When you get an error in IE 7 saying –
Automation server can’t create object
One of the reasons can be that you are trying to call a DLL/ActiveX file registered on your PC or existing over Internet which is marked as not safe by Microsoft software. If you are sure that you are using the right control (which you aren’t most of the times because you are using third party DLLs and IE takes advantage of your confusion ;)), go through the following procedure in order to use the control –
- Go to Tools > Internet options > Security > Custom Level
- Under the ActiveX controls and plug-ins, select Enable for Initializing and Script ActiveX controls not marked as safe.
You have to bring down your browser’s security in order to run the control.
And if you are doing the same using Firefox/Firefox 2, let me tell you, the problem is worse. You will be getting following error – ActiveXObject is not defined if you have some scripting inspector or no error at all. These objects are not accessible from script in Firefox, not even on the Windows platform/IE.
If you are a developer and you still want to tackle the problem, all you will need to do is to download Sarissa which is a cross-browser wrapper for native XML APIs.It supports following browsers –
Firefox and family, Internet Explorer with MSXML3.0 and up, Konqueror (KDE 3.3+ for sure), Safari and Opera. Konq, Safari and Opera offer no XSLT/XPath scripting support AFAIK
But if you are planning to distribute your application, in that case, better don’t go that way because then you will have to distribute Sarissa along with app or you will have to ask your users to download and install it.
This problem can also be resolved by running following command –