Server Error in '/' Application.

Data is Null. This method or property cannot be called on Null values.

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.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

Source Error:


Line 341:            if (bFirstItem)
Line 342:            {
Line 343:                bFilmSkinFront     = drData.GetBoolean(6);
Line 344:                bFilmSkinBackSmall = drData.GetBoolean(7);
Line 345:                bFilmSkinBackFull  = drData.GetBoolean(8);

Source File: d:\vhosts\store7.kz\httpdocs\catalog.aspx.cs    Line: 343

Stack Trace:


[SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
   System.Data.SqlClient.SqlBuffer.get_Boolean() +2799394
   catalog.LoadSkinsFilmsCatalog(Int32 iDeviceID, String lpSiteAdress) in d:\vhosts\store7.kz\httpdocs\catalog.aspx.cs:343
   catalog.LoadCatalogItems(Int32 iParentID, String lpKeyword, String lpFolderKeyword, String lpDeviceID, String lpBrandID, String lpProductType, String lpKeywordOld, String lpSearch) in d:\vhosts\store7.kz\httpdocs\catalog.aspx.cs:148
   catalog.Page_Load(Object sender, EventArgs e) in d:\vhosts\store7.kz\httpdocs\catalog.aspx.cs:41
   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