字串中的標記格式不正確。請立即檢查並修復,以免發生錯誤。 #Error #ExceptionHandling #Debugging #ASP.NET
輸入字串的格式不正確。
輸入字串的格式不正確。
描述: 執行目前 Web 請求期間發生未處理的異常。請查看堆疊追蹤以獲取有關錯誤及其在程式碼中的來源的更多資訊。
異常詳細資訊: System.FormatException:輸入字串的格式不正確。
來源錯誤:
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.
|
堆疊追蹤:
(FormatException: Input string was not in a correct format.)
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14784004
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
WebMVC4.Controllers.HomeController.Error() +575
lambda_method(Closure , ControllerBase , Object() ) +87
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
System.Web.Mvc.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() +80
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +658
System.Web.Mvc.Controller.ExecuteCore() +143
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +59
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +41
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128
|
版本資訊: 微軟.NET框架版本:4.0.30319; ASP.NET版本:4.7.4063.0
Source link