Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application which runs perfectly in my local machine. But the same when hosted in server, for some pages (which gets large amounts of data, and so takes some time for the result to come out) gives me:-
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.-- in chrome
Server not found-- in firefox
and Internet Explorer cannot display the webpage-- in IE

I went through lot of other forums and some were suggesting to put this in web.config file
HTML
<httpRuntime executionTimeout="600" maxRequestLength="51200" />

I would really appreciate if anyone can provide me a solution to the same, if they have come across this error.

Thanks in advance
Posted
Updated 1-Jul-12 22:56pm
v2
Comments
rajeswarr1 2-Jul-12 7:51am    
Hi Sandeep, thanks for your response.

Ya what you have said is right. Am fetching data and am binding it to TreeView, but i can't make out the reason why till couple of days back it was working well on server and suddenly now its not.
Also we are making sure that connection is closed.
And this error comes up some 20 to 30 seconds after the page is posted, and its not like it comes up in a particular event.. for eg:-
We have some selection criteria's(2 drop down's, say populating project details and job details, i.e. jobs comes under project), where in after selecting both(in the order) we populate a TreeView having different nodes.
Now after selecting an area under a project, the tree view gets filled for some but for some areas, i get that error page. And for some areas with Treeview getting populated, when i select a node(which has large amounts data) it shows the same error page.

Even i thought it had nothing to do with the httpruntime tag, cos i get the error page within a minute.
(I have seen these kind of error pages when i try to browse through some sites when they have huge hit, like bookmyshow, irctc, university sites when the results are being published etc)
I hope i have made it clear. :)

1 solution

which gets large amounts of data, and so takes some time
What it sounds like you are fetching large data and not transferring/sending large data. If so, above config setting would not help as it is for Requests sent. Example, for file upload, you would need to increase request length and timeout.

Since you have not shared much on what you are doing, nor have you shared what you see when you DEBUG, I will suggest you to fetch data in chunks if possible. Assuming you are getting some data to bind with grid, have pagination in it to improve performance here.

If you are keeping your database connection open for too long then it too needs a change. Add timeout in your connection string, and set the commands CommandTimeout property.

For details of the config entry you mentioned in your question, Refer: MSDN: httpRuntime Element (ASP.NET Settings Schema)[^]
 
Share this answer
 
Comments
rajeswarr1 2-Jul-12 5:37am    
Hi Sandeep, thanks for your response.

Ya what you have said is right. Am fetching data and am binding it to TreeView, but i can't make out the reason why till couple of days back it was working well on server and suddenly now its not.
Also we are making sure that connection is closed.
And this error comes up some 20 to 30 seconds after the page is posted, and its not like it comes up in a particular event.. for eg:-
We have some selection criteria's(2 drop down's, say populating project details and job details, i.e. jobs comes under project), where in after selecting both(in the order) we populate a TreeView having different nodes.
Now after selecting an area under a project, the tree view gets filled for some but for some areas, i get that error page. And for some areas with Treeview getting populated, when i select a node(which has large amounts data) it shows the same error page.

Even i thought it had nothing to do with the httpruntime tag, cos i get the error page within a minute.
(I have seen these kind of error pages when i try to browse through some sites when they have huge hit, like bookmyshow, irctc, university sites when the results are being published etc)
I hope i have made it clear. :)
Sandeep Mewara 2-Jul-12 14:07pm    
Check from fiddler on how much time your current request and response is taking. Further, what it shows in case of error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900