.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Intermittent JScript error

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :ASP.Net

Okay, I have the following piece of JScript code:

				function (data) {

It seems to work -- sometimes.  I'm getting an intermittent error on the call to SomeScriptInSomeView: "Microsoft JScript runtime error: Object expected"

Because I'm getting this intermittently, I can't trace it at all.  However, this is happening often enough that this is definitely a bug.

I'm pulling my hair out over this thing!!!  Why is this coming up???

View Complete Post

More Related Resource Links

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

Microsoft JScript runtime error: 'Parent' is null or not an object


Hi friends,

        I got This Error : Microsoft JScript runtime error: 'Parent' is null or not an object

 In runtime,after  click on the check box, It Show "Microsoft JScript runtime error: 'Parent' is null or not an object"

<script language ="javascript" type ="text/javascript" >
        function SelectAllCheckboxesSpecific(spanChk)
           var IsChecked = spanChk.checked;
           var items=0;
           var Chk = spanChk;
              Parent = document.getElementById('gvUsers');          
              var items = Parent.getElementsByTagName('input');                         
              for(var i=0;i<items.length;i++)
                  if(items[i].id != Chk && items[i].type=="checkbox")
                      if(items[i].checked!= IsChecked)

please verify it. 

SQL Server 2005 x64: Intermittent "Error: 18456, Severity: 14, State: 10."

Hi, We are experiencing intermittent authentication errors "Error: 18456, Severity: 14, State: 10" on a customer's production server. This is a new server that has just been rolled out in the past several months. Rebooting the server appears to make the problem go away. We are using SQL authentication from a separate server that is running IIS. The application always uses the same username and password to connect. Server info: select @@versionMicrosoft SQL Server 2005 - 9.00.2047.00 (X64) Apr 14 2006 01:11:53 Copyright (c) 1988-2005 Microsoft CorporationStandard Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 1) select @@versionSP1 Sample error from SQL Server errorlog: Date  7/7/2006 10:53:24 AMLog  SQL Server (Archive #2 - 7/7/2006 12:20:00 PM)Source  LogonMessageError: 18456, Severity: 14, State: 10. MSDN (http://msdn2.microsoft.com/en-us/library/ms366351.aspx) lists various states for this error message but 10 is not included, and it says "Other error states exist and signify an unexpected internal processing error." Note: This was not a case of a transient error that occurs only when SQL Server is starting up - these errors occurred at a variety of times, two months after the server was last rebooted / SQL Server last restarted. Thanks for any help you can provide. Regards,-Frank.

Microsoft JScript runtime error: 'net' is undefined.

I get an error at the statement new net.ContentLoader("MyPage.aspx") in Default.aspx page. I am using Visual Studio 2008 and .net framework 2.0.   Please help!

Visual Web Developer 2008 Express - JScript runtime error

I've noticed in Visual Studio 2008 and Visual Web Developer 2008 Express that several, dynamic JScript files are being generated at runtime.  When I run my project in "debug mode," and then I attempt to close the browser, I get the following error: "Microsoft JScript runtime error: Object doesn't support this action" The error occurs in a JS file called "jquery-1.3.2.min.js?77[dynamic].  This file is not part of my project, and I don't know where it resides. In Solution Explorer, under "Script Documents" > "Windows Internet Explorer", there are several other dynamic js files that are only appearing at runtime... What feature is causing these JS files and the JScript runtime error, to be dynamically generated at runtime?    

Getting Intermittent Execution permission cannot be acquired error

I hope I can explain the issue as I am more of a business/end user than a SharePoint expert. We are running a SharePoint intranet (MOSS 2007) within a Citrix environment. On intermittent occasions, we are receiving the error that I will post at the end of this message. This is happening intermittently and we simply can not reproduce the error.   100% of the time, we perform an IISReset on the SharePoint server and that resolves the problem. I actually have a scheduled task to run each morning to reset IIS, but the error still occurs on occasion. (again, once the error happens, if i reset IIS, it comes back up).   Has anyone ever run into this issue? Any comments or suggestions? Here is the error message:  Execution permission cannot be acquired. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Security.Policy.PolicyException: Execution permission cannot be acquired.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:   [PolicyException: Execution permission cannot be acquired.]    Syst

Intermittent SharePoint database connect error on SQL cluster

SQL 2008 Cluster has two SQL instances. Two separate SharePoint farms are "connected" with each SQL instance. SharePoint frontend servers eventlog is flooded with "unable to connect with database.." kind of errors for few minutes during diferent time interval. This erros occurs at the same time on both SharePoint farms. (Note that both SharePoint farm doesn't share any info, that is, each farm is running independantly). Someone suggests SQL box has some bandwidth/network issue. Enabled SQL trace. But not sure how to analyze. Can someone help? Thanks in advance    

Microsoft JScript runtime error: 'ctl00_ContentPlaceHolder1_ProjectsList1_TextBoxSelectedP...' is

Hello,I have a repeater for html table rows. And inside the onclick of each row I wrote handleClick('somevalue');And here's my javascript handleClick() function:function handleRowClick(rowid) { var selectedvalue=<%=TextBoxSelectedProjectID.ClientID %>; selectedvalue.value = rowid; }  and the control I'm trying to update the value of is a textbox which is defined as follows:<asp:TextBox ID="TextBoxSelectedProjectID" runat="server" Style="display: none;"></asp:TextBox>The problem is: When I click on any row of my html table i get the javascript error telling me is it undefined.(just like the subject of this post)I looked at the generator html code at runtime and here it is: <div id="ctl00_ContentPlaceHolder1_ProjectsList1_mainlayout"> <input name="ctl00$ContentPlaceHolder1$ProjectsList1$TextBoxSelectedProjectID" type="text" id="ctl00_ContentPlaceHolder1_ProjectsList1_TextBoxSelectedProjectID" /> <table cellspacing="1" cellpadding="1" width="100%" onselectstart="return false;" style="background-color: #F8F8F8"> <tr id="fc82fbb858334ba480187cedfb19e88a" class="listRowNormal" onmouseup="handleRowClick('fc82fbb858334ba480187cedfb19e88a');"> <td s

Modal Popup Extender: Jscript Runtime Error

I have a master detail aspx page with modal popup. The modal popup has a formview with edit and insert options. Whenever I try to show or hide the popup it always gives the following error. If I ignore it just works fine. Any reason why is this error popping up. Once when I deleted all the breakpoints and debugged it, the error did not show up Error:       Microsoft JScript runtime error: SysArgumentNullException: Value cannot be null       Parameter name:elements. I do not where the error occurs. It shows a break some where as follows: Debug Script Section --------------------------- Sys.UI.DomEvent.prototype = {     preventDefault: Sys$UI$DomEvent$preventDefault,     stopPropagation: Sys$UI$DomEvent$stopPropagation } Sys.UI.DomEvent.registerClass('Sys.UI.DomEvent');     $addHandler = Sys.UI.DomEvent.addHandler = function Sys$UI$DomEvent$addHandler(elements, eventName, handler, autoRemove) {     /// <summary locid="M:J#Sys.UI.DomEvent.addHandler" />     /// <param></param>     /// <param></param>     /// <param></param>     /// <param optional="true" mayBeNull

backspace key causes JScript runtime error



I am using combobox from AjaxControlToolKit. If I enter some info in the text portion of my combobox, then click out of it and return to it to change what I typed, using the backspace key, I get a JScript runtime error (null or not an object). This also hapeens if I try to fix the text using the delete key under the same conditions.

Does anyone have an idea of what could be going on here. I am using the most updated version of the AjaxControlToolkit, which is v.3.5, which was released in April or May this year.

Any advice would be really appreciated.




Intermittent EndInvoke error



We have a set of web services which intermitently fail with the error:

System.Web.Services.Protocols.SoapException: EndInvoke can only be called once for each asynchronous operation

Our own code does not use asychronous calls but does make use of WSE and we suspect that something in the WSE stack is failing. In addition we are unable to reproduce the problem in our development environment, the problem only occurs in our beta test environment and even in this environment the problem is very erratic - sometime a request works but the making the same request a few seconds later causes the problem,

Any thoughts/ideas on what we can do to investigate or fix the problem would be much appreciated.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object referen



 i have a dropdownlist and Datagrid control on form. i wanted to refresh the grid

on changing  the DropDown OnSelectedIndexChanged, but when i do change

the dropdown value then it give me fallowing error message.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

Can any one help me, how to solve this problem?

Code given below.


                <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged"
                    <asp:ListItem Selected="True">Red</asp:ListItem>

jquery runtime error: Microsoft JScript runtime error: 'nodeName' is null or not an object


Microsoft JScript runtime error: 'nodeName' is null or not an object

in jquery-1.4.2.min.js 

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts



  I am getting the following error while using ajax control tookit

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

I am using Visual Studio 2008 with .Net Framwork 3.5 SP 1, i downloaded the Ajax Control Toolkit from codeplex (AjaxControlToolkit.Binary.NET35)

Below given is the markup:

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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

Getting "Microsoft JScript runtime" Error


I have added MaskedEditExtender and MaskedEditValidator controls from the Ajax Toolkit for .NET Framework 4.0 to my textboxes to provide enhanced functionality. However, since I've done that I am getting the following error in Visual Studio when I visit the page containing these controls.

Microsoft JScript runtime error: '2.length' is null or not an object

This is the information from the script page that Visual Studio breaks in.

When I right-click on the tab in Visual Studio and choose "Copy Full Path" it gives this.

When I hover over the tab in Visual Studio it gives this (as much as I could see in the tooltip).

This is the piece of code from line 21 of the file above, where Visual Studio breaks.

can't type a single key into login box Microsoft JScript runtime error:


I had to exclude several pages from my website to get it to run in vs 2008. When I finally got the home page to come up, I tried to type a character into the login box, and at the first character the probelm blows up:

Microsoft JScript runtime error: 'keyCode' is null or not an object

This is insanse. This is the page I'm on when it crashses. Does this have something to do with ajax?

<script type="text/javascript">
function onKeyPress (evt)
	var keycode;

	if (window.XMLHttpRequest)
		keycode = evt.keyCode;
		keycode = event.keyCode;



An intermittent error I don't understand.


I'm new to ASP.net and using C# for the language. I wrote an application to track item moving from one location to another. Everything works fine in test and about half of the time in production but Occasionally I get an exception that I can't figure out. Any help would be great. When the user logs in I check for their access level I have stored in a Sybase database. The default page login code behind page has this code:

checkUserAccessLevel newUser = new checkUserAccessLevel();

               int currentUserAccessLevel = 0;

               currentUserAccessLevel = newUser.GetAccess();

The error message has the third line with the error plus a line in the class code file I am using.

Exception message: Object reference not set to an instance of an object.


Here is the class file located in the App_Code directory:

using System;

using System.Data;

using System.Configuration;

using Sybase.Data.AseClient;


public class checkUserAccessLevel


        string _svAppMode = (string)System.Web.HttpContext.Current.Session["_svAppMode"].ToString();

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend