This is strange!
We have a form authentication module that works and works fine.
However, when restarting / starting up Reporting Services for the first time, the first report that is run returns an error 500, Internal Server Error. If you run the report again, everything will work well, and all reports will work just fine from that point.
This is not a report, it happens in a simple "empty" report.
The report service log file shows "file does not exist error" but not file.
webserver!ReportServer_0-2!266c!08/22/2011-14:32:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.UnhandledHttpApplicationException: , Microsoft.ReportingServices.Diagnostics.Utilities.UnhandledHttpApplicationException: The report server encountered an unhandled exception in HttpApplication. --->
System.Web.HttpException: File does not exist.
at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response) at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---; ui!ReportManager_0-1!26cc!08/22/2011-14:32:09:: e ERROR:
System.Net.WebException: The remote server responded with an error: (500) Internal server error.
at System.Net.HttpWebRequest.GetResponse() at Microsoft.ReportingServices.UI.ServerAuthType.GetReportServerAuthentication() at Microsoft.ReportingServices.UI.ServerAuthType.get_ServerUsesBasic() at Microsoft.ReportingServices.UI.WebControlConnection.get_NetworkCredentials() at Microsoft.Reporting.WebForms.ServerReport.get_ServerNetworkCredentials() at Microsoft.Reporting.WebForms.ServerReport.get_Service() at Microsoft.Reporting.WebForms.ServerReport.GetServerVersion() at Microsoft.ReportingServices.UI.ViewReport.Control_Init(Object sender, EventArgs args) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at Microsoft.ReportingServices.UI.SharedArea.Control_Init(Object sender, EventArgs args) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at Microsoft.ReportingServices.UI.ReportWrapperPage.Page_Init(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ui!ReportManager_0-1!26cc!08/22/2011-14:32:09:: e ERROR: HTTP status code --> 500 -------Details-------- **System.Net.WebException: The remote server returned an error: (500) Internal Server Error.** at System.Net.HttpWebRequest.GetResponse() at Microsoft.ReportingServices.UI.ServerAuthType.GetReportServerAuthentication() at Microsoft.ReportingServices.UI.ServerAuthType.get_ServerUsesBasic() at Microsoft.ReportingServices.UI.WebControlConnection.get_NetworkCredentials() at Microsoft.Reporting.WebForms.ServerReport.get_ServerNetworkCredentials() at Microsoft.Reporting.WebForms.ServerReport.get_Service() at Microsoft.Reporting.WebForms.ServerReport.GetServerVersion() at Microsoft.ReportingServices.UI.ViewReport.Control_Init(Object sender, EventArgs args) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at Microsoft.ReportingServices.UI.SharedArea.Control_Init(Object sender, EventArgs args) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at Microsoft.ReportingServices.UI.ReportWrapperPage.Page_Init(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) library!ReportServer_0-2!25d8!08/22/2011-14:32:09:: Call to GetSystemPropertiesAction(). ui!ReportManager_0-1!26cc!08/22/2011-14:32:09:: e ERROR:
System.Threading.ThreadAbortException: thread terminated.
at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
Any hints / tips / suggestions that were highly appreciated since I ran out of them!
I am sure this is an authentication problem. The report may have updated the subscription cache and it still works, but then you still get the above the first time the user tries to run any report.