Getting 404 error for JSONP Get request when deploying on IIS


Facebook Facebook logo Sign up for Facebook to connect with Mujassir Nasir

I am using jquery AJAX with data type jsonp. In a local development environment with a lot of data it works fine. However, when I deploy it on IIS, it only works fine for requests with length less than 2121 characters, and gives a 404 error for characters above 2121 characters.

I also search for too long url error, for too long url it should give 414 error code.

I also used the following commands in web.config but nothing improved

<httpRuntime maxRequestLength="8192" executionTimeout="180" />

Let me know where I am going wrong.

Facebook Facebook logo Sign up for Facebook to connect with Mujassir Nasir

After long research I fixed it, it was not related to Asp.Net configuration but IIS configuration, here is the solution

IIS

-> Click on My Sites under Sites in the Connections pane on the left

-> Double click on "Request Filtering" (under IIS in the main content pane)

-> In the right pane, under Actions, click Edit Feature Settings

->Increased "Max URL Length" and "Max Query String" in the results popup

Related


Getting 404 error for JSONP Get request when deploying on IIS

Mujassir Nasir | I am using jquery AJAX with data type jsonp. In a local development environment with a lot of data it works fine. However, when I deploy it on IIS, it only works fine for requests less than 2121 characters in length, and gives a 404 error for

Getting Request Error 404 in Python when accessing API

CD Previously, I used Morningstar API to get inventory data. However, since I've been out of the US for a week, I can't access the data. Here is the code snippet: import datetime as dt from dateutil.relativedelta import relativedelta import matplotlib.pyplot

Getting Request Error 404 in Python when accessing API

CD Previously, I used Morningstar API to get inventory data. However, since I've been out of the US for a week, I can't access the data. Here is the code snippet: import datetime as dt from dateutil.relativedelta import relativedelta import matplotlib.pyplot

Error 404 after deploying MVC on IIS due to query string

Avida I just deployed an MVC app on IIS and it seems that any URL with a query string has a problem. If I open " http://serverip/app/controller/action " it works fine, but if I open " http ://serverip/app/controller/action/id " I get error 404. I do not know w

Resteasy 404 error when deploying to AWS

mark When I run the app locally, I have no problem accessing the rest of the resources using GET localhost:8080/resources/sqlData/projects, but for some reason when I try the app on the AWS server, using my-app.elasticbeanstalk I got a 404 error at .com/resour

Resteasy 404 error when deploying to AWS

mark When I run the app locally, I have no problem accessing the rest of the resources using GET localhost:8080/resources/sqlData/projects, but for some reason when I try the app on the AWS server, using my-app.elasticbeanstalk I got a 404 error at .com/resour

Getting an error when deploying to GitHub Pages

Sergey Baker I am deploying react app to git hub page and getting error. File size after gzip: 68.67 KB build\static\js\2.c2c334ae.chunk.js 2.98 KB build\static\js\main.8a72b1a2.chunk.js 774 B build\static\js\runtime~main.8f8a00a4.js The project is bui

Getting memcacher (memcached) error when deploying to heroku

kikiki.blue The ruby version on the Gemfile is v2.1.2 and the rails version is 4.1.1 ruby '2.1.2' gem 'rails', '4.1.1' That's it gem "memcachier" gem 'dalli' I have added the memcachier add-on. But while deploying rails code to heroku, I got this error.

Getting an error when deploying to GitHub Pages

Sergey Baker I am deploying react app to git hub page and getting error. File size after gzip: 68.67 KB build\static\js\2.c2c334ae.chunk.js 2.98 KB build\static\js\main.8a72b1a2.chunk.js 774 B build\static\js\runtime~main.8f8a00a4.js The project is bui

JSONP request error handling

Adrian Mojica I am making an ajax jsonp request, but the failure error handling is not working. If the request is 404 or 500, the error will not be handled. I've been looking around for an answer but can't find anything. http://code.google.com/p/jquery-jsonp/

JSONP request error

microphone I am trying to make a request to this url: https://en.wikipedia.org/w/api.php?action=opensearch&search=apple&limit=5&namespace=0&format=json ...use JSONP. The function I am using to make this request is <script> function foo(data) { var obj = J

Getting 404 for simple GET request with Spring MVC

Yuriy Nakonechnyy what do you need: There is a simple web application running at Tomcat's address http://localhost:8080/. Handlers for the following URLs should be added: GET http://localhost:8080/request/report/custom_report?from=2013-10-12&to=2014-10-12&down

Getting 404 for simple GET request with Spring MVC

Yuriy Nakonechnyy what do you need: There is a simple web application running at Tomcat's address http://localhost:8080/. Handlers for the following URLs should be added: GET http://localhost:8080/request/report/custom_report?from=2013-10-12&to=2014-10-12&down

Getting 404 for simple GET request with Spring MVC

Yuriy Nakonechnyy what do you need: There is a simple web application running at Tomcat's address http://localhost:8080/. Handlers for the following URLs should be added: GET http://localhost:8080/request/report/custom_report?from=2013-10-12&to=2014-10-12&down

Retrieving txt file results in error when deploying in IIS 7.0

Shreyas achar I have a text file RHKLIS.txt placed in D:\drive . I have found some code to retrieve the path of a text file and when running in localhost it works fine . I've deployed the code in some test machines using IIS 7.0 and tried to access the same co

Retrieving txt file results in error when deploying in IIS 7.0

Shreyas achar I have a text file RHKLIS.txt placed in D:\drive . I have found some code to retrieve the path of a text file and when running in localhost it works fine . I've deployed the code in some test machines using IIS 7.0 and tried to access the same co