Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET IIS VB.NET
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
<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 1-Jul-12 23:24pm
Edited 1-Jul-12 23:56pm
v2
Comments
rajeswarr1 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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)[^]
  Permalink  
Comments
rajeswarr1 at 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 at 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)

  Print Answers RSS
0 Maciej Los 347
1 DamithSL 305
2 ridoy 278
3 OriginalGriff 224
4 George Jonsson 140
0 OriginalGriff 7,968
1 DamithSL 6,179
2 Sergey Alexandrovich Kryukov 5,524
3 Maciej Los 5,438
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 2 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100