I've got a really puzzling issue relating to mapping data to a Model in my Web API. It's a bit complex, so let me know if I haven't explained it well enough and I'll do my best to elaborate.
See Edit 2, the problem has changed
I have a MVC 5 application in which the user submits form data and that data is mapped to a model automatically based on matching the names of the fields in the JSON with the names of the model's members. For example, if the incoming JSON for user names is of the form:
ModelMetadata metadata, ValidationContext validationContext, Object container,
I was able to solve my problem by disabling the default
System.Web.HTTP.Validation validation on my entire project. See this stack post for where I got the solution, which is shown below:
If this is put at the top of the
RouteConfig file, the default validation will be disabled, and the issue does not occur. This still does not explain why it was only validating that property on my computer, and that question remains unanswered, however for the purpose of this question this solves the problem.