Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:


Line 14: {
Line 15:     string _connStr = (string)ConfigurationSettings.AppSettings["DBConnection"];
Line 16:     long _appId = long.Parse(ConfigurationSettings.AppSettings["ApplicationID"]);
Line 17:     bool _isSecure = bool.Parse(ConfigurationSettings.AppSettings["IsSecure"]);
Line 18:     List<AppConfig> _configList = null;

Source File: e:\WWW\esvportal-loveland\Login.aspx.cs    Line: 16

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12937893
   System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) +133
   System.Int64.Parse(String s) +24
   Login..ctor() in e:\WWW\esvportal-loveland\Login.aspx.cs:16
   ASP.login_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9245055d\17377c07\App_Web_hm0kiu1n.12.cs:0
   __ASP.FastObjectFactory_app_web_hm0kiu1n.Create_ASP_login_aspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9245055d\17377c07\App_Web_hm0kiu1n.18.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +339
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


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