I've developed my webapp locally and not see this issue, I now i've uploaded it to the webserver (IIS 7.5)
I've added a timer to the page and its takes 45secounds FLAT, to load the page. but this isn't every time, its only after pressing the refresh / reload button Multiple time it gets in this state...
I've search through IIS and google and can't find this magic 45 secounds settings? any ideas?
Can you show the aspx and code behind for your page? I'm thinking it might be something to do with postback. When you hit F5/reload, that is a full postback which will kick off your timer if you don't have the timer inside a (Page.IsNotPostBack) block.
Alot of the code just references classes so wudn't be much use unless I sent the entire project!
I've norrowed it down, it appears to be something to do with the database connection. which is even more stranger as it connects to the same DB (remotly from my dev machine) which is local to the webserver where I am now seeing the issue.
Look to see if there are any resources being used that aren't being freed up. For example, close database connection and destroy objects. If any of these functions use a third-party control then take a look at them as well. It could very well be that there
is something in a component or piece of code that is using too much memory, or some resources, or that it isn't designed for a multi-threaded environment and dies during concurrent uses.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
superbunlge8...
0 Points
2 Posts
IIS Hangs for 15, 45 Seconds
May 03, 2012 02:59 PM|LINK
Hi,
Hope someone can help with this I'm really stuck!
I've developed my webapp locally and not see this issue, I now i've uploaded it to the webserver (IIS 7.5)
I've added a timer to the page and its takes 45secounds FLAT, to load the page. but this isn't every time, its only after pressing the refresh / reload button Multiple time it gets in this state...
I've search through IIS and google and can't find this magic 45 secounds settings? any ideas?
bbcompent1
All-Star
33000 Points
8513 Posts
Moderator
Re: IIS Hangs for 15, 45 Seconds
May 03, 2012 03:05 PM|LINK
Can you show the aspx and code behind for your page? I'm thinking it might be something to do with postback. When you hit F5/reload, that is a full postback which will kick off your timer if you don't have the timer inside a (Page.IsNotPostBack) block.
superbunlge8...
0 Points
2 Posts
Re: IIS Hangs for 15, 45 Seconds
May 03, 2012 04:09 PM|LINK
Alot of the code just references classes so wudn't be much use unless I sent the entire project!
I've norrowed it down, it appears to be something to do with the database connection. which is even more stranger as it connects to the same DB (remotly from my dev machine) which is local to the webserver where I am now seeing the issue.
markfitzme
Star
14433 Points
2227 Posts
Re: IIS Hangs for 15, 45 Seconds
May 03, 2012 04:46 PM|LINK
Look to see if there are any resources being used that aren't being freed up. For example, close database connection and destroy objects. If any of these functions use a third-party control then take a look at them as well. It could very well be that there is something in a component or piece of code that is using too much memory, or some resources, or that it isn't designed for a multi-threaded environment and dies during concurrent uses.