getting page error

3 replies. Last post: July 21, 2011 2:40 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Steve ChauMember

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 281:
Line 282:    Protected Sub WebGrid2_InitializeLayout1(sender As Object, e As ISNet.WebUI.WebGrid.LayoutEventArgs) Handles WebGrid2.InitializeLayout
Line 283:        WebGrid2.GetTableByName("t_log_entry2").Columns.GetNamedItem("log_entry_id").DefaultValue = -1
Line 284:
Line 285:

Source File: C:\Users\administrator.SYSTEMS\Documents\Visual Studio 2010\WebSites\WebSite5\LogBookEntries.aspx.vb    Line: 283

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   LogBookEntries.WebGrid2_InitializeLayout1(Object sender, LayoutEventArgs e) in C:\Users\administrator.SYSTEMS\Documents\Visual Studio 2010\WebSites\WebSite5\LogBookEntries.aspx.vb:283
   ISNet.WebUI.WebGrid.WebGrid.OnInitializeLayout(LayoutSet layout) +68
   ISNet.WebUI.WebGrid.WebGrid.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 

I get the above error when I try to load the page.  my webgrid is using sqldatasource and it is set to "t_log_entry2" table.  Please help.

All times are GMT -5. The time now is 11:59 AM.
Previous Next