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 63:     {
Line 64:         Categories category = new Categories();
Line 65:         category.Load(product.Cat_ID.Value);
Line 66: 
Line 67:         DataTable dt = null;

Source File: d:\hst\stels-ukrain-com-ua_82ec9cb6\http\ProductResponces.aspx.cs    Line: 65

Stack Trace:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +52
   System.Nullable`1.get_Value() +3101929
   Page_ProductResponces.SetCatsLinks() in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\ProductResponces.aspx.cs:65
   Page_ProductResponces.Page_Load(Object sender, EventArgs e) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\ProductResponces.aspx.cs:48
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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