Server Error in '/AlkTWeb' Application.

Conversion from type 'DBNull' to type 'Boolean' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'Boolean' is not valid.

Source Error:


Line 436:
Line 437:
Line 438:        Sprit = prmSpritDrycker.Value
Line 439:        Vin = prmVin.Value
Line 440:            StarkOl = prmStarkol.Value

Source File: D:\inetpub\AlkT.malmo.se\AlkTWeb\App_Code\Classes\ObjektDB.vb    Line: 438

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'Boolean' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(Object Value) +1314924
   AlkTWeb.GTInfo..ctor(Int32 ObjektID) in D:\inetpub\AlkT.malmo.se\AlkTWeb\App_Code\Classes\ObjektDB.vb:438
   AlkTWeb.GallandeTillstandInfo1.Page_Load(Object sender, EventArgs e) in D:\inetpub\AlkT.malmo.se\AlkTWeb\GallandeTillstandInfo.ascx.vb:24
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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