I'm trying to instantiate an excel object through ole automation in client-side javascript using.

var obj = new ActiveXObject(Excel.Application);

It is working fine if I run this simple .htm file, with client-side javascript code, from local C or D drive. but when i place this file on wwwroot, an exception occurs, "automation server cannot create object" at the obove mentioned line.

So is this a problem with some permission required for IIS to create an ole Object??. If this is so, Please respond for how to grant these permissions, or if it is a different problem?

Thanks a lot.