Server Error in '/' Application.

Nullable object must have a value.

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.InvalidOperationException: Nullable object must have a value.

Source Error:


Line 21:             {
Line 22:                 pages.Load(Val(Request["kind"]));
Line 23:                 if (pages.Data.root.Value == 0)
Line 24:                 {
Line 25:                     DataTable pagesRow = pages.RowDataTable(pages.Data.num, nation);

Source File: d:\Inetpub\vhosts\i-latc.com\httpdocs\page\about\index.aspx.cs    Line: 23

Stack Trace:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +56
   System.Nullable`1.get_Value() +12770166
   tw_about_index.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\i-latc.com\httpdocs\page\about\index.aspx.cs:23
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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