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 751:      <% = RSv("descrizione")%><br><br>
Line 752:<%
Line 753:If rsv("Immagine1") > 0 then
Line 754: NFNEW = Rsv("CODGLOSS") & "-" & Rsv("VOCE") & "-1"
Line 755: NFNEW = Replace(NFNEW, " ", "-")

Source File: C:\inetpub\wwwroot\chieseromaniche\Chiese-Romaniche-Gotiche-Piemonte-Glossario.htm    Line: 753

Stack Trace:


[InvalidCastException: Operator '>' is not defined for type 'DBNull' and type 'Integer'.]
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectGreater(Object Left, Object Right, Boolean TextCompare) +186
   ASP.chiese_romaniche_gotiche_piemonte_glossario_htm.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\chieseromaniche\Chiese-Romaniche-Gotiche-Piemonte-Glossario.htm:753
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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