SQL Server 2012 - Enterprise Edition
Windows Server 2008 Enterprise
static void d()
{
ReportExecution2005.ReportExecutionService re = new ReportExecution2005.ReportExecutionService();
re.Credentials = System.Net.CredentialCache.DefaultCredentials;
string reportName = "/folder/report";
string historyId = null, extension = null, encoding = null, mimeType = null;
string format = "NULL";
string deviceInfo = null;
string[] streams = null;
ReportExecution2005.Warning[] warning = null;
ExecutionInfo ei = re.LoadReport(reportName, historyId);
re.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warning, out streams);
//re.Render2(format, deviceInfo, PageCountMode.Actual, out extension, out mimeType, out encoding, out warning, out streams);
}
RSS script:
Public Sub Main()
RenderReport("/Merchandising/MER003 Net Sales")
End Sub
Public Sub RenderReport(reportPath as string)
Dim format as string = "NULL"
' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim extension as string = Nothing
Dim encoding as string
Dim mimeType as string
Dim warnings() AS Warning = Nothing
Dim streamIDs() as string = Nothing
Dim results() as Byte
rs.LoadReport(reportPath, historyID)
results = rs.Render(format, deviceInfo, extension, mimeType, encoding, warnings, streamIDs)
End Sub
library!ReportServer_0-105!2870!11/24/2012-21:13:27:: i INFO: RenderForNewSession('/Merchandising/MER003 Net Sales From To')
webserver!ReportServer_0-105!2870!11/24/2012-21:13:37:: e ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ReportingServices.Library.ReportExecution2005Impl.InternalRender(String Format, String DeviceInfo, PageCountMode pageCountMode, Stream& Result, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
at Microsoft.ReportingServices.Library.ReportExecution2005Impl.Render(String Format, String DeviceInfo, PageCountMode pageCountMode, Byte[]& Result, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
at Microsoft.ReportingServices.WebServer.ReportExecutionService.Render2(String Format, String DeviceInfo, PageCountMode PaginationMode, Byte[]& Result, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
No exception in log file.
Other (e.g. VM Ware, specify in Description)