website stops working .... Application pool error

Posted by RohiK under Regular Expressions on 7/6/2011 | Points: 10 | Views : 2548 | Status : [Member] | Replies : 1
hi all,

I have developed one website. fully used of jquery controls.
when I upload it on server , after an hour(in use) website stops working.
I got error page.[I check database connection in try catch block and if connection is not open then throw an error]
when i changed application pool in IIS then it starts again but after some time again it gets stop

Everything is seem to be fine. how i can resolve this issue?

Happy Programming!!


Posted by: SheoNarayan on: 7/6/2011 [Administrator] HonoraryPlatinum | Points: 25

Looks like your website might have a lot of memory leak that is why the server is getting stuck.

There are certain more points you should consider.

1. Make sure that you are closing the disposing the connection object and other object you are using in your project
2. Make sure that you are not using a lot of viewstate (disable viewstate for the control that you do not need)
3. Make sure that you are not overusing the Session objects (eg. authentication and authorization can be done using FormsAuthentication class no need of session )
4. Make sure that you are using html controls rather than ASP.NET server controls (for example, to place an image on the page, you do not need to use asp:Image control, you can work with <img> tag.
5. Make sure that your web page doesn't have too much JavaScript code, put the JavaScript code (jQuery code) inside the .js file and refer that into the master page.
6. Make sure that you do not have css class code written in the .aspx page, write it into the .css file and refer into the master page.

There are many other points as well and can be pointed out after seeing your project.

Hope this will help.


Sheo Narayan

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response