1
Vote

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

description

Server Error in '/payloadznet' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
 
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:
 
[NullReferenceException: Object reference not set to an instance of an object.]
AjaxControls.ToolBar.OnPreRender(EventArgs e) in C:\Documents and Settings\c16ry\My Documents\Visual Studio 2005\Projects\RTE\RichTextEditor\ToolBar.cs:190
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
 
Please guide me why i am getting this error?

comments

SomeJerk wrote Sep 12, 2011 at 11:33 PM

You need to set head tag to runat="server". Control is attempting to add javascript and css into the head tag.

wrote Feb 14, 2013 at 7:46 PM