首次运行任何报告时出现Reporting Services错误

时间:2011-08-22 14:14:15

标签: authentication reporting-services forms-authentication ssrs-2008

这是一个奇怪的人!

我们已经实施了表单身份验证模块,并且工作正常。

但是,当您重新启动/首次运行报告服务时,要运行的第一个报告将返回错误500,内部服务器错误。如果您重新运行报告,那么所有报告都可以正常运行,并且从这一点开始,所有报告都能正常运行。

这不是报告,它发生在简单的“空白”报告上。

报告服务日志文件显示“文件不存在错误”,但不显示哪个文件。

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:文件不存在。

   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:远程服务器返回错误:(500)内部服务器错误。

   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:线程正在中止。

   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)

任何 帮助/提示/建议非常感谢,因为我已经用光了!

我很确定这是一个身份验证问题。报告可以刷新订阅“缓存”并仍然有效,但是当“用户”第一次尝试运行任何报告时,您仍然可以获得上述内容。

1 个答案:

答案 0 :(得分:0)

我遇到了一个问题,它会加载第一个报告但是从我的自定义下拉列表中选择时没有重新加载其他报告。所以窗口没有刷新新数据。我必须做以下工作才能使它正常工作。希望这会给你一些想法。

ReportViewer1.LocalReport.Dispose();

ReportViewer1.Reset();