I am posting an object to a webapi method. object looks as such
public class SendRequest
{
public string APIKey { get; set; }
public string Message { get; set; }
}
I have an example, where my message is REALLY big (27mb). On posting it is always null.
Note - my SendRequest is not null, but my Message property is. Following similar articles, I configured my web.config as such
<httpRuntime
targetFramework="4.5.1"
maxRequestLength="2147483647"
requestValidationMode="4.0"
executionTimeout="110" />
and
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
but I am still not winning.
The crazy thing is that it's just the single property thats null (APIKey is passed correctly) so it can't be IIS blocking it can it?
Am I just failing on deserializing?