jquery - Getting 404 error for JSONP Get request when deployed on IIS -


i using jquery ajax datatype jsonp. working fine on local dev environment huge amount of data. when deployed on iis works fine request of length less 2121 characters, gives 404 error more 2121 characters.

i have searched long url error, long url should give 414 error code.

i have used following in web.config nothing improved

<httpruntime maxrequestlength="8192" executiontimeout="180" /> 

let me know wrong.

i had supply both of these values in web.config work fine.
if using iis hosting application, default content size 4mb. increase it, please use below section in web.config -

 <system.web>         <httpruntime maxrequestlength="1048576" />     </system.web> 

and in system.webserver, need add part iis 7 , above

<security>     <requestfiltering>         <requestlimits maxallowedcontentlength="1073741824" />     </requestfiltering> </security> 

maxrequestlength has 1048576 kilobytes, , maxallowedcontentlength has 1073741824 bytes. make sure you're adding setting main web.config instead of 1 inside views folder if want handle globally.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -