Server Error in '/' Application.

Value was either too large or too small for an Int32.

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: Value was either too large or too small for an Int32.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[OverflowException: Value was either too large or too small for an Int32.]
   System.Convert.ToInt32(Double value) +13157833
   HomeAsisstant.Global.B_SetBackupTime(Int32 backup_setID, String backup_name, TimeSpan backupTime) in D:\HomeAsisstant\BlankWebSiteFormat\Global.asax.cs:246
   ie.facade.Backup.Run() in D:\HomeAsisstant\ie.facade\Backup.cs:74
   HomeAsisstant.Global.TakeBackup() in D:\HomeAsisstant\BlankWebSiteFormat\Global.asax.cs:239
   HomeAsisstant.Global.Application_Start(Object sender, EventArgs e) in D:\HomeAsisstant\BlankWebSiteFormat\Global.asax.cs:47

[HttpException (0x80004005): Value was either too large or too small for an Int32.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10099417
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +218
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Value was either too large or too small for an Int32.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10080632
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


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