_events Is Null Or Not An Object Error Only When Compilation Debug="false"
Oct 8, 2010
I have been creating and using a page on the development environment for awhile, it is a search oriented page that is heavy on the ASP.NET AJAX controls. I've recently tried to move this to production, however, whenever I set the value in the Web.Config file: <compilation debug="false">
Clicking on anything on the page which would result in an UpdatePanel update or an AJAX postback causes a JavaScript error to be thrown:
Message: '_events' is null or not an object
Line: 5
Char: 36005
However, as soon as I set: <compilation debug="true"> again, everything works perfectly again. Does anyone have any tips as to what I might check in my code that would be causing this error, and why it is that the setting of this debug="false" in the compilation param causes this?
It is unlikely that setting debug="false" is the direct cause of this error, but maybe if I got some details about what debug="false" might be doing differently, I might know better where to look inside my ASP.Net/AJAX code to fix the problem.
View 1 Replies
Similar Messages:
Jun 8, 2010
I have a development machine and a server. problem is that whenever I publish a website I need to change manually debug=false.....its frustrating as I am publish almost everyday new version.
can I change this programatically by HOST name?
View 5 Replies
Aug 22, 2010
I have a Page that conatains a panel and an animation extender attached to it, when a button is clicked the panel appears but it gives me the above error in the title.. I know there's something wrong with the animation extender but really i don't have any idea from where to start
View 1 Replies
Mar 9, 2010
I am trying to do something like this in an aspx page:
<head runat="server">
<% #if DEBUG %>
<script src="jquery-1.3.2.js" type="text/javascript"></script>
<% #else %>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<% #endif %>
</head>
I get an error "Preprocessor directives must appear as the first non-whitespace character on a line". How can I do this?
View 1 Replies
May 20, 2010
how can I access the following settings in the web.config through code? Cheers
<compilation debug="true">
<authorization>
<allow roles="MyGroups" />
<deny users="*" />
</authorization>
View 2 Replies
May 27, 2010
i have an application wherein i have incorporate a "Remember Me" feature for the login screen. I do this by creating a cookie when the user logs in for the first time, so next time when the user visits the site i get the cookie and load the user information.
i have written the code for loading user information in a common class in the App_Code folder...and all my pages inherit from this class.
code for loading the user info is as follows:
public static void LoadUserDetails(string emailId)
{
UsersEnt currentUser = UsersBL.LoadUserInfo(emailId);
if (currentUser != null)
HttpContext.Current.Session["CurrentUser"] = currentUser;
}
Now the problem is i get an "Object reference" error when i try to store the currentUser object in the session variable (even though the currentUser object is not null). However the password property in the currentUser object is null.
View 3 Replies
May 17, 2010
m getting this error again and again. i m also using the ajax modalpopup extender in my page ..
View 3 Replies
May 13, 2010
My site was woking fine, now i noticed that i get an error "Microsoft JScript runtime error: 'null' is null or not an object" when i checked the view source, i saw the following system generated code
<script type="text/javascript">
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
ValidatorOnLoad();
function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
else {
return true;
}
WebForm_AutoFocus('txtMailAddress');// --> IS THIS RIGHT???? out side the braces???
</script>
</form>
</body>
</HTML>
and a reference to this line below
<IFRAME id="__hifSmartNav" name="__hifSmartNav" style="display:none" src="/m2qa/WebResource.axd?d=fvL5WUdiCo1B4KvdiJfkfg2&t=633546432952161750"></IFRAME>
View 3 Replies
Feb 19, 2010
I am declaring a list in my class, populating the list in page load and using the list in various methods in this class. But, I get this error at every instance where I use this list in the methods. Error: System.NullReferenceException: Object reference not set to an instance of an object.
public partial class ViewBG1 : HealthServicePage
View 3 Replies
Mar 12, 2010
Ik keep getting this sort of errors when using Ajax controls.The colorpicker extender and the Cascaded dropdown generate this kind of error in my application.I have a scriptmanager in my masterpage.I already tried using a scriptmanager proxy.What could cause these errors?I have the controls inside template fields of data presentation controls.
View 2 Replies
Jan 11, 2011
While using blockUI function of Jquery I am getting below Error:
parentNode is Null Or not an object I am display a div using the below code
$.blockUI({message:$('#divID')});
First time it will execute nicely but second time it gives error.
View 9 Replies
Jun 23, 2010
While testing an AJAX enabled web app I sometimes stumbled upon this script error: 'this.get_element().style' is null or not an object. It was a hard nut to crack this one.This was the actual message
'this.get_element() is null or not an object'
The situation:AJAX Enabled web app using slider extenders . In some circumstances a script error is generated. In most cases it is not.
The reason:It turned out that the error happens at times when a new Postback is triggered while a previous one hasnt finished yet. That is quickly changing the sliderhandle's position in this scenario. The Postback where triggered because i had set the AutoPostBack property of the extended TextBox to "true".I have some code running inside the event handler
View 7 Replies
Oct 27, 2010
I am working on ASP.NET 3.5, c#, visual studio 2010. I have made a master file and a default page that uses this master file. I have placed a couple asp:contentplaceholders in the master and corresponding code in the page that uses this master. I have also inserted JavaScript like this in the content page (and not the master):
<asp:Content ID="Content6" ContentPlaceHolderID="Mainpage" Runat="Server">
<script src="path1" type="text/javascript"></script>
<script src="path2" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var options = {
//some java code
};
$(".mycssclass").effect(options);
});
</script>
</asp:Content>
On running the website I get the following runtime error in visual studio: Microsoft JScript runtime error: 'this.node' is null or not an object and it point to some function inside the JavaScript like this.node.onload=function(){..............//I am not a java guy so do not know much about this Where am I going wrong? Why does the site compile correctly but throw this runtime error? I also tried inserting this java code inside the master file in the <head>, but same error.
View 3 Replies
Oct 19, 2010
How do i check for empty array?
If I write
If Not ls_filename.Length = 0 then
....
End If
I get object refernce set to null error
View 4 Replies
Feb 4, 2010
if i implement updateprogress in my web page i got the following error messge
Microsoft JScript runtime error: 'Sys.WebForms.PageRequestManager' is null or not an object
.aspx
<link
href="cssUpdateProgress.css"
rel="stylesheet"
type="text/css"
/>
<script
type="text/javascript"
language="javascript">
var ModalProgress =
'<%= ModalProgress.ClientID %>';
</script>
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
EnablePartialRendering="False"
LoadScriptsBeforeUI="False"
ScriptMode="Release"
>
<
</asp:ScriptManager>script
type="text/javascript"
src="jsUpdateProgress.js"></script>
<asp:Panel
ID="panelUpdateProgress"
Width="105px"
Height="25px"
runat="server"
CssClass="updateProgress">
<asp:UpdateProgress
ID="UpdateProg1"
DisplayAfter="0"
runat="server">
<ProgressTemplate>
<table
style="height:25px;">
<tr><td><img
height="21px"
width="15px"
src="imagesprocessing.gif"
style="vertical-align: middle"
alt="Processing"
/></td><td
valign="middle"
>Processing...</td></tr>
</table>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Panel>
<cc1:ModalPopupExtender
ID="ModalProgress"
runat="server"
TargetControlID="panelUpdateProgress"
BackgroundCssClass="modalBackground"
PopupControlID="panelUpdateProgress"
/>
javascript
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq);
function
beginReq(sender, args) {// shows the Popup
$find(ModalProgress).show();
}
function
endReq(sender, args) {// shows the Popup
$find(ModalProgress).hide();
}
View 1 Replies
Oct 9, 2010
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?
[Code]....
View 3 Replies
Apr 15, 2010
I am hiding a TextBoxin my aspx page like this: myField.visible=false; Now I have a DropDown as well which tries to access the TextBox on IndexChange. The problem is, it cant access the hiffen TextBox and I am getting document.form[0] is Null or Not an Object. How can I solve that? Is the some check for that in JavaScript?
View 1 Replies
Mar 20, 2010
This is the following structure of my solution explorer.
base directory -> i have a login.aspx and a reference directory which refers to ajax toolkit. The ajax toolkit works fine here.
private directory -> i have my homepage but the ajax toolkit doesn't work here. the above error is shown at this location :-
(function() {var fn = function() {$get('ToolkitScriptManager1_HiddenField').value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TabPanel, {"headerTab":$get("__tab_TabContainer1_TabPanel1"),"ownerID":"TabContainer1"}, null, {"owner":"TabContainer1"}, $get("TabContainer1_TabPanel1"));
});
I have one web.config in the private folder . This is the structure :-
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</configuration>
If i allow all users to access this folder or remove this web.config file, then the ajax toolkit works. I need to protect this folder and i am using form authentication. Could someone point me where i went wrong. Kindly keep in mind that i am new to asp.net.
View 7 Replies
Mar 5, 2011
i use accordion from ajax toolkit it work correctly when i use outputcash it gives me this error:
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object
[Code]....
View 2 Replies
Dec 9, 2010
I am getting this error in my UpdatePanelAnimationExtender. it onluy happens when i se controls that are outside gridview?
View 2 Replies
Nov 27, 2010
I decided to use the CalendarExtender on a project and I converted it from VS 2005 to Web Developer 2010 Express. I initially added the AJAX toolkit for ASP.NET 4.0 and the calendar extender worked fine. However, I realised that the server didn't have ASP.NET 4.0 installed and I thought it would be simpler to add the toolkit for 3.5 instead and change the target framework to 3.5. I tried and then the CalendarExtender did't work at all. When you click the textbox nothing happens. There is the error on page - 'sys.extended.ui.textboxwrapper is null or not an object'
I tried switching the project back to 4.0 and using the other one and that no longer works for some reason. The same in 2008 Web Developer Express. I've clearly done something wrong along the way, but I can't work out what it is.
Here's the source for a page on a test Web Developer 2008 Express project.
[Code]....
View 2 Replies
Aug 5, 2010
The problem is in the crv.js, at
Sys.Application.notifyScriptLoaded();
when I try to open a report is shows Microsoft JScript runtime error: 'Sys.Application' is null or not an object
If I click Ignore or Continue, it's show the report properly, but when I deploy it to the development server it does not work.
At this time I am trying to open a simple report with the date and page number.
there is a CrystalReportViewer at the Default.aspx page.
the code is
[Code]....
View 3 Replies
Apr 2, 2010
I am using some AJAX and some JQuery for Login panel animation in Master page.Also in my home page I am using AJAX Tab container.It works fine when I run the application without login.If I logged in I got the following error when I put the breakpoint into my code,
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object,It shows at the following Line at the Home[dynamic] page.
document.getElementById('ctl00_sdfsf').dispose = function() {
Array.remove(Page_ValidationSummaries, document.getElementById('ctl00_sdfsf'));
}
View 3 Replies
May 19, 2010
I am upgrading a website from .Net 1.1 to .Net 2.0 Framework.My Code is working well in mozilla but the same code is creating one problem in explorerthat is :- "Microsoft JScript runtime error: 'document.Form1.txtScrollY' is null or not an object"It is showing 3 options for every action i do in the net Break , Continue, Ignore.
View 2 Replies
Jan 14, 2010
I have a gridview,when i do it is giving me null object reference error.
I am posting my code for your reference -
[Code]....
My gridview code is -
[Code]....
View 8 Replies