【发布时间】:2011-11-01 04:55:44
【问题描述】:
这很奇怪!
我们实现了一个表单身份验证模块,一切正常。
但是,当您重新启动/首次运行报告服务时,第一个运行的报告会返回错误 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)
任何帮助/提示/建议非常感谢,因为我已经用完了!
我很确定这是一个身份验证问题。报告可以进行订阅“缓存”刷新并且仍然有效,但是当“用户”第一次尝试运行任何报告时,您仍然会得到上述内容。
【问题讨论】:
-
你找到解决办法了吗?
-
不!幸运的是,当您仅从 url 运行报告时,没关系,但从 iframe 则不是。只有 2 个人真正看到了这个问题,他们正在忍受它,但它仍然让我烦恼!
-
据我调试此行为,我发现它与 Logon.aspx.cs 有关。第一次调用此页面。在我的情况下,我检查了 Request.Url.Host,结果是 127.0.0.1,这是由我的 UI 上的设置引起的 - rsreportserverconfig.xml 中的 ReportServerUrl。但我仍然面临同样的问题,仍在调查是什么原因。
-
当你发现有人有同样的问题但没有修复时,你不讨厌吗? :) 这里也一样...
标签: authentication reporting-services forms-authentication ssrs-2008