Server Error in '/' 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:


Line 94: <%
Line 95: Dim urlReferrer as String
Line 96: urlReferrer = Request.UrlReferrer.ToString 
Line 97: 'response.write(urlReferrer)
Line 98: If InStr(urlReferrer, "amr.aspx") Then 

Source File: E:\Sites\PremBiz\csnnews\templates\AMR.aspx    Line: 96

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.csnnews_templates_amr_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Sites\PremBiz\csnnews\templates\AMR.aspx:96
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4238


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0