Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASPX page jscript rt error: null is null or not an object

Reply
Thread Tools

ASPX page jscript rt error: null is null or not an object

 
 
Cirene
Guest
Posts: n/a
 
      06-09-2008
I created an AJAX ASP.NET website. When I run the site in IE, with
debugging on, I get:
A runtime error has occurred. Do you wish to Debug?
Line: 43
Error: 'null' is null or not an object
Yes No

So I click 'Yes' to debug and choose Microsoft Script Editor. It brings me
to a ScriptResource.axd file. I didn't create this file. Here is the line
it has trouble with...
evt[i](source, args);

In this function:
function Sys$EventHandlerList$getHandler(id) {
/// <summary locid="M:J#Sys.EventHandlerList.getHandler" />
/// <param name="id" type="String"></param>
/// <returns type="Function"></returns>
var e = Function._validateParams(arguments, [
{name: "id", type: String}
]);
if (e) throw e;
var evt = this._getEvent(id);
if (!evt || (evt.length === 0)) return null;
evt = Array.clone(evt);
return function(source, args) {
for (var i = 0, l = evt.length; i < l; i++) {
evt[i](source, args);
}
};
}

Any idea of where I go from here? I didn't even write this code and I
certainly don't know what it means or what it does.

Thanks.


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      06-09-2008
On Jun 9, 9:48*pm, "Cirene" <cir...@nowhere.com> wrote:
> I created an AJAX ASP.NET website. *When I run the site in IE, with
> debugging on, I get:
> A runtime error has occurred. Do you wish to Debug?
> Line: 43
> Error: 'null' is null or not an object
> Yes * * *No
>
> So I click 'Yes' to debug and choose Microsoft Script Editor. *It brings me
> to a ScriptResource.axd file. *I didn't create this file. *Here is the line
> it has trouble with...
> evt[i](source, args);
>
> In this function:
> * * function Sys$EventHandlerList$getHandler(id) {
> * * * * /// <summary locid="M:J#Sys.EventHandlerList.getHandler" />
> * * * * /// <param name="id" type="String"></param>
> * * * * /// <returns type="Function"></returns>
> * * * * var e = Function._validateParams(arguments, [
> * * * * * * {name: "id", type: String}
> * * * * ]);
> * * * * if (e) throw e;
> * * * * var evt = this._getEvent(id);
> * * * * if (!evt || (evt.length === 0)) return null;
> * * * * evt = Array.clone(evt);
> * * * * return function(source, args) {
> * * * * * * for (var i = 0, l = evt.length; i < l; i++) {
> * * * * * * * * evt[i](source, args);
> * * * * * * }
> * * * * };
> * * }
>
> Any idea of where I go from here? *I didn't even write this code and I
> certainly don't know what it means or what it does.
>
> Thanks.


it sounds like you might need to check the web.config. Look at the
following thread (scroll down to httpHandlers config)

http://forums.asp.net/t/1069032.aspx?PageIndex=1

Hope this helps
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Server-Side Jscript (not Jscript.NET)? Maxwell2006 ASP .Net 5 03-07-2006 05:28 AM
JScript.Net (JScript 7.0) is official documented language VK Javascript 4 01-12-2006 06:48 PM
Porting from JScript to JScript.Net - compiler error Jon Maz ASP .Net 4 09-09-2004 10:24 AM
Call function in codebehind from jscript in aspx page moondaddy ASP .Net 2 02-27-2004 05:35 PM
Which to Learn: Javascript, Jscript, JScript.NET, ECMA 262 (3rd ed)? John Bentley Javascript 14 02-05-2004 06:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57