Inconsistent MVC parameter error in IE

只谈情不闲聊 提交于 2019-12-13 02:34:42

问题


I've got a user who is seeing an error in my MVC3 application, that I can't explain.

The exception is:

System.ArgumentException:
The parameters dictionary contains a null entry for parameter 'extractID' 
of non-nullable type 'System.Int32' for method 
'System.Web.Mvc.PartialViewResult SelectExtract(Int32)' ...

I understand what this exception usually means, but it shouldn't be happening here.

The method is:

[HttpPost]
public PartialViewResult SelectExtract(int extractID)
{...}

The call comes via jQuery AJAX, and works for everyone else, but not this person. I've inspected the network traffic in the browser developer tools (IE9), and as expected, it correctly contains a POST body of extractID=9.

They have hard-refreshed, so I know they're getting the most recent javascript files.

In Chrome, and in private browsing mode in IE, everything works fine for this user - or if the user wipes their IE history/cache/cookies/etc., it works. So I'm assuming there's something funky happening in IE, but I've seen this a few times with a few different users, so I can't write it off as a one-time IE glitch.

Any idea what I should be looking for?

来源:https://stackoverflow.com/questions/35706769/inconsistent-mvc-parameter-error-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!