【发布时间】:2011-03-03 01:11:14
【问题描述】:
调用正在调用网络服务的代理的代码是:
ReportExecutionService rs = new ReportExecutionService(); rs.Timeout = System.Threading.Timeout.Infinite; rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
string execURL=ConfigurationSettings.AppSettings["ReportsBasePath"] + @"/ReportExecution2005.asmx"; rs.Url=execURL;
ExecutionInfo execInfo = rs.LoadReport("/Reports/rptSharedRepresentativeReport",null);
请注意LoadReport函数的第一个参数是:Report
错误:
未指定参数“报告”的值。它要么在函数调用中丢失,要么被设置为 null 在 Microsoft.ReportingServices.WebServer.ReportExecution2005Impl.LoadReport(字符串报告、字符串 HistoryID、ExecutionInfo2 和 executionInfo) 在 Microsoft.ReportingServices.WebServer.ReportExecutionService.LoadReport(String Report, String HistoryID, ExecutionInfo& executionInfo)
在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage 消息,WebResponse 响应,流 responseStream,布尔 asyncCall) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串方法名,对象 [] 参数) 在 ReportExecutionService.LoadReport(字符串报告,字符串 HistoryID) 在 Stockamp.Portal.RSData.SAReportServerAccess.GetReportStream(String reportPath, ArrayList parameterValues, String format)
【问题讨论】: