Server Error in '/' Application.

Arithmetic operation resulted in an overflow.

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.OverflowException: Arithmetic operation resulted in an overflow.

Source Error:


Line 56:     Public Function CheckId(ByVal theInId As Object) As Integer
Line 57:         If IsNumeric(theInId) Then
Line 58:             Return theInId
Line 59:         Else
Line 60:             System.Web.HttpContext.Current.Response.End()

Source File: C:\Buscafacil\App_Code\MGSecurity.vb    Line: 58

Stack Trace:


[OverflowException: Arithmetic operation resulted in an overflow.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +110
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) +1286
   MGSecurity.CheckId(Object theInId) in C:\Buscafacil\App_Code\MGSecurity.vb:58
   MGSecurity.CheckQueryString() in C:\Buscafacil\App_Code\MGSecurity.vb:25
   MGBasePage.Page_PreInit(Object sender, EventArgs e) in C:\Buscafacil\App_Code\MGBasePage.vb:181
   System.Web.UI.Page.OnPreInit(EventArgs e) +11850277
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +295


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