Solved

Microsoft JScript runtime error: Automation server can't create object

Posted on 2010-11-28
1
2,041 Views
Last Modified: 2012-05-10
Microsoft JScript runtime error: Automation server can't create objectQuestion:
I'm trying to create an activeXObject  in javascript which works on my local machine just running the .htm file, but when I try to run it in Visual Web Developer 2008 I get the following error:
Microsoft JScript runtime error: Automation server can't create object

I also get a similar error running it on a IIS6.0 server. I played around with lots of settings but can't get it to work.


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>Untitled Page</title>

    <script language="javascript" type="text/javascript">

        function callFn() {

            var abc = new ActiveXObject("Project1.Class1");

            alert(abc.Age());

        }



    </script>

</head>

<body onload="callFn()">

    <form id="form1" runat="server">

    <div>

    

    </div>

    </form>

</body>

</html>

Open in new window

0
Comment
Question by:Fi-es
1 Comment
 
LVL 19

Accepted Solution

by:
Bardobrave earned 500 total points
ID: 34228459
Is your ActiveXObject installed in all the environments/machines where you are trying to load it?

Usually "Automation server can't create object" points to two causes:
-Misspell on object names (this probably isn't the problem as you made it work on local environment).
-Absence of object on execution environment.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now