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 62:             }
Line 63: 
Line 64:             _itemCounter = "ProductID".ToQueryString().TryParseIntUsLocalization().Value;
Line 65:             CategoryID = "CategoryID".ToQueryString();
Line 66:             DepartmentID = "DepartmentID".ToQueryString();

Source File: e:\Websites\www.kpcreek.com\showproduct.aspx.cs    Line: 64

Stack Trace:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +56
   System.Nullable`1.get_Value() +23
   InterpriseSuiteEcommerce.showproduct.Page_Load(Object sender, EventArgs e) in e:\Websites\www.kpcreek.com\showproduct.aspx.cs:64
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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