鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

瀵逛簬鈥淢vcWeb.Controllers.NewsController鈥濅腑鏂规硶鈥淪ystem.Web.Mvc.ActionResult About(Int32)鈥濈殑涓嶅彲浠ヤ负 null 鐨勭被鍨嬧€淪ystem.Int32鈥濈殑鍙傛暟鈥渋d鈥濓紝鍙傛暟瀛楀吀鍖呭惈涓€涓 null 椤广€傚彲閫夊弬鏁板繀椤讳负寮曠敤绫诲瀷銆佸彲浠ヤ负 null 鐨勭被鍨嬫垨澹版槑涓哄彲閫夊弬鏁般€侟br>鍙傛暟鍚岤 parameters

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭缁忓鐞嗙殑寮傚父銆傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.ArgumentException: 瀵逛簬鈥淢vcWeb.Controllers.NewsController鈥濅腑鏂规硶鈥淪ystem.Web.Mvc.ActionResult About(Int32)鈥濈殑涓嶅彲浠ヤ负 null 鐨勭被鍨嬧€淪ystem.Int32鈥濈殑鍙傛暟鈥渋d鈥濓紝鍙傛暟瀛楀吀鍖呭惈涓€涓 null 椤广€傚彲閫夊弬鏁板繀椤讳负寮曠敤绫诲瀷銆佸彲浠ヤ负 null 鐨勭被鍨嬫垨澹版槑涓哄彲閫夊弬鏁般€侟br>鍙傛暟鍚岤 parameters

婧愰敊璇?

鎵ц褰撳墠 Web 璇锋眰鏈熼棿鐢熸垚浜嗘湭缁忓鐞嗙殑寮傚父銆傚彲浠ヤ娇鐢ㄤ笅闈㈢殑寮傚父鍫嗘爤璺熻釜淇℃伅纭畾鏈夊叧寮傚父鍘熷洜鍜屽彂鐢熶綅缃殑淇℃伅銆

鍫嗘爤璺熻釜:


[ArgumentException: 瀵逛簬鈥淢vcWeb.Controllers.NewsController鈥濅腑鏂规硶鈥淪ystem.Web.Mvc.ActionResult About(Int32)鈥濈殑涓嶅彲浠ヤ负 null 鐨勭被鍨嬧€淪ystem.Int32鈥濈殑鍙傛暟鈥渋d鈥濓紝鍙傛暟瀛楀吀鍖呭惈涓€涓 null 椤广€傚彲閫夊弬鏁板繀椤讳负寮曠敤绫诲瀷銆佸彲浠ヤ负 null 鐨勭被鍨嬫垨澹版槑涓哄彲閫夊弬鏁般€
鍙傛暟鍚岤 parameters]
   System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) +527
   System.Web.Mvc.<>c__DisplayClass1.b__0(ParameterInfo parameterInfo) +19
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +58
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +123
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +79
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +133
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.Async.<>c__DisplayClass42.b__41() +28
   System.Web.Mvc.Async.<>c__DisplayClass8`1.b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +49
   System.Web.Mvc.Async.<>c__DisplayClass39.b__33() +58
   System.Web.Mvc.Async.<>c__DisplayClass4f.b__49() +228
   System.Web.Mvc.Async.<>c__DisplayClass37.b__36(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +49
   System.Web.Mvc.Async.<>c__DisplayClass2a.b__20() +24
   System.Web.Mvc.Async.<>c__DisplayClass25.b__22(IAsyncResult asyncResult) +99
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +44
   System.Web.Mvc.<>c__DisplayClass1d.b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +55
   System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +45
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +25
   System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9854405
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:4.0.30319; ASP.NET 鐗堟湰:4.8.4718.0
Baidu
sogou