Skip to content Skip to sidebar Skip to footer

Sending Large Json Via Jquery Ajax Errors With 404, Typemismatcherror, Or "not Enough Storage Is Available To Complete This Operation"

I'm working on an ASP.NET web application for uploading files and I'm having an issue when the upload size gets large. I'm sending a JSON string to a C# WebMethod. The JSON contain

Solution 1:

The default maxAllowedContentLength is 30000000, which is why I got the 404 error when the upload size was more than 30MB. I added the following to my Web.config file and I no longer get the 404 error.

<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxAllowedContentLength="100000000" />
    </requestFiltering>
  </security>
</system.webServer>

Post a Comment for "Sending Large Json Via Jquery Ajax Errors With 404, Typemismatcherror, Or "not Enough Storage Is Available To Complete This Operation""