title: Debug an error occuring when running an asp.net app first time
body: <p>I am working on an asp.net application which errors only during the first time running the app. The error message is <strong>{"Response is not available in this context."}</strong> and the app breaks in the global.asax.cs page in Application_Error function.  </p>
  
  <p>The stack trace value is:    at System.Web.HttpApplication.get_Response()
     at pcMDnet.Global.Application_Error(Object sender, EventArgs e) in C:\BuildDir\1.0.1.05\GIS\pcMDnet\Global.asax.cs:line 364
     at System.Web.HttpApplication.RaiseOnError()</p>
  
  <p>How can I debug this issue? </p>