3

這是一個奇怪的問題!任何報告首次運行時報告服務錯誤

我們有一個窗體身份驗證模塊來實現,是所有工作的罰款。

但是,當你重新啓動/第一次運行報告服務,第一份報告運行會返回錯誤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) 

任何幫助/提示/建議大加讚賞,因爲我跑了出來!

我很確定這是一個身份驗證問題。報告可以訂閱'緩存'刷新並仍然有效,但是當用戶首次嘗試運行任何報告時,您仍然可以獲得上述信息。

+0

你有沒有找到這樣的解決? – kyzen

+1

不!幸運的是,當你只是從一個url運行報告,沒關係,但從iframe它不是。只有兩個人真的看到了這個問題,他們和它一起生活,但它仍然讓我煩惱! – adudley

+0

至於我調試到這種行爲,我看到它與Logon.aspx.cs有關。這個頁面是第一次被調用。在我的情況中,我檢查了Request.Url.Host,結果是127.0.0.1,這是由我的UI上的設置 - rsreportserverconfig.xml中的ReportServerUrl導致的。但我仍然面臨同樣的問題,仍然在調查是什麼原因。 – YvesR

回答

0

我有一個問題,它會加載的第一份報告,但是從我的自定義下拉列表中選擇時,沒有加載其他報告。所以窗口沒有刷新新的數據。我不得不做以下工作。希望這給你一些想法。

ReportViewer1.LocalReport.Dispose(); 

ReportViewer1.Reset(); 
+2

感謝您的建議。也許這是問題的一部分,我們沒有使用報告控件,只是一個IFrame到報告服務器等。 – adudley