我有一箇中等複雜的報告,由很多子報表組成。Reporting Services 2005:嘗試導出到Excel會導致「對象引用未設置爲對象的實例」。錯誤
一個特定的問題是導致一個問題:如果您單獨運行它,它工作正常。如果您將其整合爲一個報表,它拒絕讓您導出到Excel格式的文件(預覽版),並出現以下錯誤:
An error occurred during local report processing.
An error occurred during rendering of the report.
An error occurred during rendering of the report.
Object reference not set to an instance of an object.
生產爲任何其他格式正常工作。到目前爲止,我的谷歌搜索大多數都說「重新安裝Reporting Services」,我真的不想做(我重新安裝了a previous issue,我花了一整天的時間讓所有的事情再次開心 - 可能更多),尤其是考慮到它不是一個可靠的解決方案
我不知道它是否有意義,但報告確實使我們看到了Dundas Charts,這可能會使分析更加困難。
任何人都知道更好的解決方案?
更新:
當我嘗試導出到Excel報表服務器上,它給了我這樣的:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Exception: Object reference not set to an instance of an object.]
[Exception: An error occurred during rendering of the report.]
[Exception: An error occurred during rendering of the report.]
Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +520
Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +936
Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +28
Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +85
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +143
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +152
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75