Ajax calendar problem

T

Tamer Ibrahim

Hi,
I got the following exception when I use ajax calendar control on some aspx
pages, here it is :

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.]
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control
control) in
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:229
AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) in
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:398
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
 
T

tony thomas

just check if the head is a server tag
<head runat="server"> :)



Tamer Ibrahim wrote:

Ajax calendar problem
06-Sep-07

Hi
I got the following exception when I use ajax calendar control on some aspx
pages, here it is

Object reference not set to an instance of an object
Description: An unhandled exception occurred during the execution of th
current web request. Please review the stack trace for more informatio
about the error and where it originated in the code

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

Source Error

An unhandled exception was generated during the execution of th
current web request. Information regarding the origin and location of th
exception can be identified using the exception stack trace below

Stack Trace

[NullReferenceException: Object reference not set to an instance of a
object.
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Contro
control) i
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:22
AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) i
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:39
System.Web.UI.Control.PreRenderRecursiveInternal() +7
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Page.ProcessRequestMain(Boolea
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

Previous Posts In This Thread:

Ajax calendar problem
Hi
I got the following exception when I use ajax calendar control on some aspx
pages, here it is

Object reference not set to an instance of an object
Description: An unhandled exception occurred during the execution of th
current web request. Please review the stack trace for more informatio
about the error and where it originated in the code

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

Source Error

An unhandled exception was generated during the execution of th
current web request. Information regarding the origin and location of th
exception can be identified using the exception stack trace below

Stack Trace

[NullReferenceException: Object reference not set to an instance of a
object.
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Contro
control) i
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:22
AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) i
d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:39
System.Web.UI.Control.PreRenderRecursiveInternal() +7
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Control.PreRenderRecursiveInternal() +16
System.Web.UI.Page.ProcessRequestMain(Boolea
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Cross-Browser ASP.NET CSS-Only Menu UserControl
http://www.eggheadcafe.com/tutorial...ce-d17d1b482676/build-a-crossbrowser-asp.aspx
 
M

Mr. Arnold

tony said:
Ajax calendar problem
Hi,
I got the following exception when I use ajax calendar control on some aspx
pages, here it is :

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.

Do you understand what the error means? It doesn't matter VB, C# or
whatever an object is null/nothing. And you cannot access an object if
it's not there.

http://codebetter.com/blogs/raymond.lewallen/archive/2005/06/23/65033.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top