我是SSRS报道的新工作,如果这是一个愚蠢的问题,我真的很抱歉,但我很乐意为您提供所需的所有信息。
使用ASP.NET呈现报告。当我在本地运行网站时,一切正常。但是,当我将我的网站发布到C:/blablabla
时,它会抛出错误说:
Microsoft.Reporting.WinForms.ReportServerException: An error has occurred during report processing. (rsProcessingAborted) ---> Microsoft.Reporting.WinForms.ReportServerException: Cannot create a connection to data source 'TPLite'. (rsErrorOpeningConnection) ---> Microsoft.Reporting.WinForms.ReportServerException: Login failed for user 'DESKSOLUTIONS\DESK-RD-04$'.
--- Einde van intern uitzonderingsstackpad ---
--- Einde van intern uitzonderingsstackpad ---
bij Microsoft.Reporting.WinForms.ServerReportSoapProxy.OnSoapException(SoapException e)
bij Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
bij Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.Render(String Format, String DeviceInfo, PageCountMode PaginationMode, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
bij Microsoft.Reporting.WinForms.ServerReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
bij Microsoft.Reporting.WinForms.Report.Render(String format)
bij SociopackWS.Datalogic.S2020Mgr.MaakStocklijst() in C:\Users\avanhoutte\Documents\Projects\Sociopack Webservice\SociopackWS\SociopackWS\Datalogic\S2020MGR.cs:regel 849
经过一些调试后,我发现这是失败的原因:
var bytes = rptViewer.ServerReport.Render("PDF");
错误说明了数据源TPLite,它在报告本身中使用。数据源从参数获取连接字符串,这在两个方案中都是传递的。