Hi guys, I've been dealing with this bug for a couple days now and I've finally decided to post this issue on here. I'm not entirely sure if this is an IIS issue or ASP.Net issue. We are running on Amazon AWS servers, we are able to deploy our project to 1 older server (Windows Server 2012, IIS 8) and the project does not have any problems.
However, when we create a new server (either 2012 or 2012 R2) we start seeing this wierd issue. When we request our website multiple times, this error occurs randomly once in a while. This is reproducible over a few minutes, the error will definitely come up.
Exception: (NullReferenceException) Object reference not set to an instance of an object.
StackTrace: at System.Web.UI.Control.UnloadRecursive(Boolean dispose) at System.Web.UI.Control.UnloadRecursive(Boolean dispose) at System.Web.UI.Page.UnloadRecursive(Boolean dispose) at System.Web.UI.Page.ProcessRequestCleanup() at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.onlineorders_restaurantreceipt_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\6e6b18b2\3b005822\App_Web_tfqgsomr.1.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
We do not use a custom IHTTPHandler, and we wrapped all the code under Page_Load into a huge try-catch block. Yet our try-catch is never encountered, so we are not sure where this error is happening. This problem is happening with .Net 2 and .Net 4 compiled code. Any help pointing me in the right direction would be great! Thanks :)