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

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

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

寮傚父璇︾粏淇℃伅: SystemArgumentException: 瀵逛簬鈥淢aDengJiuYeControllersNewsController鈥濅腑鏂规硶鈥淪ystemThreadingTasksTask`1[SystemWebMvcActionResult] List(Int32)鈥濈殑涓嶅彲浠ヤ负 null 鐨勭被鍨嬧€淪ystemInt32鈥濈殑鍙傛暟鈥渋d鈥濓紝鍙傛暟瀛楀吀鍖呭惈涓€涓 null 椤广€傚彲閫夊弬鏁板繀椤讳负寮曠敤绫诲瀷銆佸彲浠ヤ负 null 鐨勭被鍨嬫垨澹版槑涓哄彲閫夊弬鏁般€侟br>鍙傛暟鍚岤 parameters

婧愰敊璇?

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

鍫嗘爤璺熻釜:


[ArgumentException: 瀵逛簬鈥淢aDengJiuYeControllersNewsController鈥濅腑鏂规硶鈥淪ystemThreadingTasksTask`1[SystemWebMvcActionResult] List(Int32)鈥濈殑涓嶅彲浠ヤ负 null 鐨勭被鍨嬧€淪ystemInt32鈥濈殑鍙傛暟鈥渋d鈥濓紝鍙傛暟瀛楀吀鍖呭惈涓€涓 null 椤广€傚彲閫夊弬鏁板繀椤讳负寮曠敤绫诲瀷銆佸彲浠ヤ负 null 鐨勭被鍨嬫垨澹版槑涓哄彲閫夊弬鏁般€
鍙傛暟鍚岤 parameters]
   SystemWebMvcActionDescriptorExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) +433
   SystemLinqWhereSelectArrayIterator`2MoveNext() +78
   SystemLinqBuffer`1ctor(IEnumerable`1 source) +158
   SystemLinqEnumerableToArray(IEnumerable`1 source) +93
   SystemWebMvcAsyncTaskAsyncActionDescriptorBeginExecute(ControllerContext controllerContext, IDictionary`2 parameters, AsyncCallback callback, Object state) +217
   SystemWebMvcAsync<>c__DisplayClass8_0b__0(AsyncCallback asyncCallback, Object asyncState) +46
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcAsyncAsyncControllerActionInvokerBeginInvokeAsynchronousActionMethod(ControllerContext controllerContext, AsyncActionDescriptor actionDescriptor, IDictionary`2 parameters, AsyncCallback callback, Object state) +269
   SystemWebMvcAsyncAsyncInvocationWithFiltersInvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex) +96
   SystemWebMvcAsyncAsyncInvocationWithFiltersInvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex) +1009
   SystemWebMvcAsyncAsyncInvocationWithFiltersInvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex) +1009
   SystemWebMvcAsync<>c__DisplayClass7_0b__0(AsyncCallback asyncCallback, Object asyncState) +100
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcAsyncAsyncControllerActionInvokerBeginInvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters, AsyncCallback callback, Object state) +303
   SystemWebMvcAsync<>c__DisplayClass3_1b__0(AsyncCallback asyncCallback, Object asyncState) +1082
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcAsyncAsyncControllerActionInvokerBeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +463
   SystemWebMvc<>cb__152_0(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState) +48
   SystemWebMvcAsyncWrappedAsyncVoid`1CallBeginDelegate(AsyncCallback callback, Object callbackState) +73
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcControllerBeginExecuteCore(AsyncCallback callback, Object state) +787
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcControllerBeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +630
   SystemWebMvc<>cb__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +99
   SystemWebMvcAsyncWrappedAsyncVoid`1CallBeginDelegate(AsyncCallback callback, Object callbackState) +73
   SystemWebMvcAsyncWrappedAsyncResultBase`1Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   SystemWebMvcMvcHandlerBeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +544
   SystemWebCallHandlerExecutionStepSystemWebHttpApplicationIExecutionStepExecute() +970
   SystemWebHttpApplicationExecuteStepImpl(IExecutionStep step) +75
   SystemWebHttpApplicationExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


鐗堟湰淇℃伅: Microsoft NET Framework 鐗堟湰:4030319; ASPNET 鐗堟湰:4841100