This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Automation Server can't Create object

Deepthi - Thursday, July 12, 2012 5:10 AM:

I am using ActiveXObject for accessing Excel Application. this is throwing me an exception "Automation Server can't Create Object". My internet security options were set approriately for running the activeX controls. Please help me.  

if (window.ActiveXObject) {
try
{
var excelApp = new ActiveXObject ("Excel.Application");//This line is throwing the exception
excelApp.Visible = true;
}
catch (e)
{
alert (e.message);
}
}
else
{
alert ("Your browser does not support this example.");
}
 

 

 

 

 

 



Sachin - Friday, July 13, 2012 1:26 AM:

Hi Deepthi

check u r internet setting as per following.

tool -> Internet option -> Security tab-> custom level->  ActiveX Contol & plugin -> 

Initialize and script ActiveX controls not marked as safe for scripting (not secure)   Mark Enable(not secure)

if you get popup like Your current security settings put computer at risk, then ignore it and go ahead .

Close all Internet Browser window Restart again.

I hope it's work, finger cross.

 

Sachin G.

 



Deepthi - Friday, July 13, 2012 2:16 AM:

Hi Sachin,

Thanks for your reply. I have made the settings suggested by you, even then throwing the same "Automatiion server can't create object" exception.

Can you suggest me any other alternative for this.

Thanks in Advance,

Deepthi



Datta_Wavhal - Saturday, September 29, 2012 2:04 AM:

Hi Sachin,

I want to run isodraw application through aras innovator.

My Code is:

 var MyObject = new ActiveXObject("WScript.Shell");

MyObject.Run(filePath);

 

 but it is giving me error as "Automation Server can't create object".

It is working outside Aras but not working in aras.

I have done all the settings in internet explorer for ActiveX Controls which you have told already.. so can you plz help me to solve this problem. 

Thanks in advance

Datta W.

 

 



Sachin - Friday, July 13, 2012 4:57 AM:

Check setting again...

Sachin G.



Hrishikesh - Tuesday, October 2, 2012 2:02 AM:

Hi Datta and Deepthi,

check your Internet setting as per following.

Tool (from menu) ---> Internet option ---> Security tab---> select Trusted sites---> custom level--->  ActiveX Contol & plugin ---> 

Initialize and script ActiveX controls not marked as safe for scripting   Mark Enable

After setting  the above settings in Internet Explorer, close the Internet Explorer.

It must work, i have done it at my side its working fine.

If you have any query's then please post it, i will try to help you.

Thanks

Hrishikesh

 



Datta Wavhal - Wednesday, October 3, 2012 1:34 AM:

Hi Hrishikesh,

Thanks for your reply, i have made all settings suggested by you, but even then throwing the same "Automatiion server can't create object" exception.

it is working in windows7 & IE9 but not working in windows xp & IE8.

so can you plz suggest another way.

Thanks in advance

Datta