Showing results for 
Show  only  | Search instead for 
Did you mean: 
Engaged Sweeper
Hello, I've got error after I did upgrade to version with "licence compliance". The following error occurs:

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 59: <%if oldlicenseid <> myrow("licenseidid") then%>
Line 60: <tr class="ne">
Line 61: <td width="10" align="center" valign="middle" class="stippel"><%if myrow("missing") <=0 then%>
Line 62: <img src="images/ok.gif" width="10" height="10" hspace="1"/>
Line 63: <%else%>

Source File: C:\Program Files\lansweeper\website\it-license.aspx Line: 61

Stack Trace:

[InvalidCastException: Operator '<=' is not defined for type 'DBNull' and type 'Integer'.]
Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectLessEqual(Object Left, Object Right, Boolean TextCompare) +515423
ASP.it_license_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Program Files\lansweeper\website\it-license.aspx:61
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

Can you help me with resolving this issue, please ?

Lansweeper Alumni
Please download an updated page from

Engaged Sweeper
OK, it seems to work. Thank You.