如何解决具有相同密钥的项目已添加到表单httpPost MVC 4上
在MVC 4中发布表单时,我在Global.asax中遇到此错误,并且我正在努力寻找导致此问题的原因。任何帮助将不胜感激
An item with the same key has already been added.
System.ThrowHelper.ThrowArgumentException(ExceptionResource资源):16
System.Collections.Generic.Dictionary 2.Insert(TKey key,TValue value,Boolean add) System.Collections.Generic.CollectionExtensions.ToDictionaryFast[TKey,TValue](TValue[] array,Func
2 keySelector,IEqualityComparer 1 comparer):36 System.Web.Mvc.ModelBindingContext.get_PropertyMetadata():45 System.Web.Mvc.DefaultModelBinder.BindProperty(ControllerContext controllerContext,ModelBindingContext bindingContext,PropertyDescriptor propertyDescriptor):33 System.Web.Mvc.DefaultModelBinder.BindProperties(ControllerContext controllerContext,ModelBindingContext bindingContext):46 System.Web.Mvc.DefaultModelBinder.BindComplexElementalModel(ControllerContext controllerContext,Object model):28 System.Web.Mvc.DefaultModelBinder.BindComplexModel(ControllerContext controllerContext,ModelBindingContext bindingContext):596 System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext,ParameterDescriptor parameterDescriptor):134 System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext,ActionDescriptor actionDescriptor):26 System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass3_1.<BeginInvokeAction>b__0(AsyncCallback asyncCallback,Object asyncState):645 System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase
1.Begin(AsyncCallback回调,对象状态,Int32超时):38
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext,字符串actionName,AsyncCallback回调,对象状态):198
System.Web.Mvc.Controller + c.b__152_0(AsyncCallback asyncCallback,对象asyncState,ExecuteCoreState innerState)
System.Web.Mvc.Async.AsyncResultWrapper + WrappedAsyncVoid 1.CallBeginDelegate(AsyncCallback callback,Object callbackState) System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase
1.Begin(AsyncCallback回调,对象状态,Int32超时):38
System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback回调,对象状态):229
System.Web.Mvc.Async.AsyncResultWrapper + WrappedAsyncResultBase 1.Begin(AsyncCallback callback,Object state,Int32 timeout):38 System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext,AsyncCallback callback,Object state):156 System.Web.Mvc.MvcHandler+<>c.<BeginProcessRequest>b__20_0(AsyncCallback asyncCallback,Object asyncState,ProcessRequestState innerState):30 System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid
1.CallBeginDelegate(AsyncCallback回调,对象callbackState)
System.Web.Mvc.Async.AsyncResultWrapper + WrappedAsyncResultBase`1.Begin(AsyncCallback回调,对象状态,Int32超时):38
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext,AsyncCallback回调,对象状态):167
System.Web.HttpApplication + CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute():261
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep步骤):100
System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值和已完成同步):55
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。