Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Website Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry - 15 Aug 2007 15:42 GMT
Hi

I get te following error message, i am unable to find the line from where
the error is being throw, can anyone help

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
System.NullReferenceException: Object reference not set to an instance of an
object.
  at System.Web.UI.Control.ResolveClientUrl(String relativeUrl)
  at System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter
writer)
  at System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer)
  at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
  at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children)
  at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
  at System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter
writer)
  at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer)
  at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
  at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children)
  at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
  at System.Web.UI.Page.Render(HtmlTextWriter writer)
  at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
  at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
  at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  --- End of inner exception stack trace ---
  at System.Web.UI.Page.HandleError(Exception e)
  at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  at System.Web.UI.Page.ProcessRequest()
  at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
  at System.Web.UI.Page.ProcessRequest(HttpContext context)
  at ASP.default_aspx.ProcessRequest(HttpContext context) in
j:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\root\0b1db5bb\56bddf8f\App_Web_dzz36e3y.10.cs:line 0
  at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)

TIA
Barry
Vadym Stetsiak - 15 Aug 2007 15:54 GMT
Hello, Barry!

Callstack indicates that exception was thrown from .NET Framework code.
No wonder you cannot find the line that throws the exception.

Callstack also "says" that there was NullReferenceException in the
System.Web.UI.Control.ResolveClientUrl(...) and that HtmlLink control is
being rendered.

You wrote  on Wed, 15 Aug 2007 20:12:17 +0530:

B> I get te following error message, i am unable to find the line from
B> where the error is being throw, can anyone help

B> System.Web.HttpUnhandledException: Exception of type
B> 'System.Web.HttpUnhandledException' was thrown. --->
B> System.NullReferenceException: Object reference not set to an instance
B> of an object.
B>    at System.Web.UI.Control.ResolveClientUrl(String relativeUrl)
B>    at
B> System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter
B> writer)
B>    at System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer)
B>    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
B>    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
B> writer, ICollection children)
B>    at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
B>    at System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter
B> writer)
B>    at
B> System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
B> writer)
B>    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
B>    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
B> writer, ICollection children)
B>    at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
B>    at System.Web.UI.Page.Render(HtmlTextWriter writer)
B>    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
B> ControlAdapter adapter)
B>    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
B>    at System.Web.UI.Page.ProcessRequestMain(Boolean
B> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
B>    --- End of inner exception stack trace ---
B>    at System.Web.UI.Page.HandleError(Exception e)
B>    at System.Web.UI.Page.ProcessRequestMain(Boolean
B> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
B>    at System.Web.UI.Page.ProcessRequest(Boolean
B> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
B>    at System.Web.UI.Page.ProcessRequest()
B>    at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
B>    at System.Web.UI.Page.ProcessRequest(HttpContext context)
B>    at ASP.default_aspx.ProcessRequest(HttpContext context) in
B> j:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
B> Files\root\0b1db5bb\56bddf8f\App_Web_dzz36e3y.10.cs:line 0
B>    at
B> System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpAppli
B> cation.IExecutionStep.Execute()
B>    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
B> Boolean& completedSynchronously)

With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com
Cowboy (Gregory A. Beamer) - 15 Aug 2007 16:32 GMT
Try using the web deployment project before testing again. And make sure it
creates the PDB file, so you can see where the issue is.

As it stands, the exception is thrown high up the stack, but without seeing
your code, I could not even guess what is causing the issue.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************

> Hi
>
[quoted text clipped - 56 lines]
> TIA
> Barry

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.