Inconsistent MVC parameter error in IE

2019-07-28 02:10发布

问题:

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?