A member of my team went through a few pages in our ASP.NET web application and changed some OnLoad overrides to page_load events, but he did not remove the call to base.OnLoad().
This:
Public void override OnLoad()
{
//stuff
base.OnLoad();
}
To this:
Public void Page_Load(object sender, EventArgs e)
{
//stuff
base.OnLoad();
}
Note: I apologize if there are syntax errors, I am not on a computer with the actual source code.
When we pushed out code to the live server we started having issues with the IIS app_pool crashing every 45 mins to an hour. We are still not entirely sure this was the issue but I am curious where page_load events get invoked from. Do they get invoked from the OnLoad method in the system.web.ui.page? If so then I have the opinion this was causing an infinite loop and eventually running out of memory and crashing the app_pool.
Could this be the cause of our troubles?