Server Error in '/' Application.

Operator '<>' is not defined for type 'DBNull' and type 'Integer'.

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: Operator '<>' is not defined for type 'DBNull' and type 'Integer'.

Source Error:


Line 778:                        cnt = 0
Line 779:                    End If
Line 780:                    If rdr("IsImage") <> 0 Or True Then
Line 781:                        If (RequestShow = "Profiles" Or Request("Show") <> "") And "" & Request("DID") = "" And gallery <> 1 Then
Line 782:                            MinInfo = "<td " & TDClass & " valign=""top"" align=""Left""  width=""" & TDWidth & """ height=""" & TDHeight & """"

Source File: D:\Inetpub\vhosts\myccnews.org\brucescampfire.org\Show.aspx.vb    Line: 780

Stack Trace:


[InvalidCastException: Operator '<>' is not defined for type 'DBNull' and type 'Integer'.]
   Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectNotEqual(Object Left, Object Right, Boolean TextCompare) +207
   Show.ShowData(String CritString, String html, String RequestShow) in D:\Inetpub\vhosts\myccnews.org\brucescampfire.org\Show.aspx.vb:780
   Show.Page_Load(Object sender, EventArgs e) in D:\Inetpub\vhosts\myccnews.org\brucescampfire.org\Show.aspx.vb:395
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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