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

Microsoft JScript runtime error: Automation server can’t create object.
Microsoft JScript runtime error: Object doesn’t support this property or method.
When you implement AJAX features in your ASP.NET page, the client’s browser got the above error messages. When you use client debugging, you further the following code:
// MicrosoftAjax.js
Function.__typeName=”Function”;Function.__class=true;
Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0)
{var d=[];for(var c=0;cFunction.createDelegate=function(a,b){return function(){return b.apply(a,arguments)}};Function.emptyFunction=Function.emptyMethod=function(){};
Function._validateParams=function(e,c){var a;a=Function._validateParameterCount(e,c);if(a)
{a.popStackFrame();return a}
for(var b=0;bif(d.parameterArray)f+=”[“+(b-c.length+1)+”]”;a=Function._validateParameter(e[b],d,f);
if(a){a.popStackFrame();return a}}return null}

Solution:
This is because the MicrosoftAjax.js in Resource.axd is trying to create object using: xmlHttp=new ActiveXObject(“Msxml2.XMLHTTP”); But in client’s Internet Explorer, the security setting is high. Especially the “Script ActiveX controls marked safe for scripting” in Security tab is disabled. Solution: Make sure that the Internet Zone in the Security Zones settings is set to Medium.

(And Run ActiveX controls and plug-ins  – Enabled)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s