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 25:     {
Line 26:         DataRowView view = (DataRowView)(FormView1.DataItem);
Line 27:         object o = view["staticURL"];
Line 28:         if (o != null && o !=DBNull.Value)
Line 29:         {

Source File: e:\web\oakhillredd\htdocs\News_View.aspx    Line: 27

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.news_view_aspx.FormView1_DataBound(Object sender, EventArgs e) in e:\web\oakhillredd\htdocs\News_View.aspx:27
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +94
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +140
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +27
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +71
   System.Web.UI.WebControls.FormView.DataBind() +5
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61
   System.Web.UI.WebControls.FormView.EnsureDataBound() +169
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +70
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +53
   System.Web.UI.Control.PreRenderRecursiveInternal() +202
   System.Web.UI.Control.PreRenderRecursiveInternal() +202
   System.Web.UI.Control.PreRenderRecursiveInternal() +202
   System.Web.UI.Control.PreRenderRecursiveInternal() +202
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4588


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975