B
Bryan Valencia
Guest
Waaaay back in VS 2010 I made a WINFORMS app that includes some reports.
My old VS2010 has gone on to it's reward, and now I have VS2015 and VS 2019.
Of course the client now wants a SIMPLE change to the report, only a text box changed, and...
1. 2019 and 2015 no longer have a report editor. I downloaded one for 2019, but didn't find one for 2015.
2. change made, piece of cake, but when I attempt to run the report, I get this...
Microsoft.Reporting.WinForms.LocalProcessingException occurred
HResult=-2146233088
Message=An error occurred during local report processing.
Source=Microsoft.ReportViewer.WinForms
StackTrace:
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
at Microsoft.Reporting.WinForms.Report.SetParameters(ReportParameter parameter)
at Onesource.Reports.SalesInvoice.salesInvoiceForm.salesInvoiceForm_Load(Object sender, EventArgs e) in C:\Users\Bryan Valencia\Documents\Visual Studio 2015\Projects\OneViewBackOffice\OneView\Reports\SalesInvoice\salesInvoiceForm.cs:line 33
InnerException:
ExceptionLevelHelpLink=Microsoft - Official Home Page
HResult=-2146233088
Message=The definition of the report '' is invalid.
SkipTopLevelMessage=false
Source=Microsoft.ReportViewer.Common
StackTrace:
at Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.GetCompiledReport(PreviewItemContext itemContext, Boolean rebuild, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.CompileReport()
at Microsoft.Reporting.LocalService.Microsoft.Reporting.ILocalProcessingHost.CompileReport()
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
InnerException:
ExceptionLevelHelpLink=Microsoft - Official Home Page
HResult=-2146233088
Message=The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.
SkipTopLevelMessage=false
Source=Microsoft.ReportViewer.Common
StackTrace:
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateInvalidReportDefinitionException(Exception e)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase1(Stream definitionStream, String& description, String& language, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, Boolean& hasExternalImages, Boolean& hasHyperlinks)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateIntermediateFormat(Byte[] definition, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, IDataProtection dataProtection, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext, IDataProtection dataProtection)
at Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)
InnerException:
This error occurs on this line:
ReportParameter InvNoParam = new ReportParameter("InvNo", this.InvoiceNumber);
this.reportViewer1.LocalReport.SetParameters(InvNoParam);
OK, details: Winforms app. The report is a local report, set to process locally.
Was originally designed in VS2010, and worked fine there.
I have been all over the site AND stack, without any resolution.
I'd rather live with false hope than with false despair.
Continue reading...
My old VS2010 has gone on to it's reward, and now I have VS2015 and VS 2019.
Of course the client now wants a SIMPLE change to the report, only a text box changed, and...
1. 2019 and 2015 no longer have a report editor. I downloaded one for 2019, but didn't find one for 2015.
2. change made, piece of cake, but when I attempt to run the report, I get this...
Microsoft.Reporting.WinForms.LocalProcessingException occurred
HResult=-2146233088
Message=An error occurred during local report processing.
Source=Microsoft.ReportViewer.WinForms
StackTrace:
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
at Microsoft.Reporting.WinForms.Report.SetParameters(ReportParameter parameter)
at Onesource.Reports.SalesInvoice.salesInvoiceForm.salesInvoiceForm_Load(Object sender, EventArgs e) in C:\Users\Bryan Valencia\Documents\Visual Studio 2015\Projects\OneViewBackOffice\OneView\Reports\SalesInvoice\salesInvoiceForm.cs:line 33
InnerException:
ExceptionLevelHelpLink=Microsoft - Official Home Page
HResult=-2146233088
Message=The definition of the report '' is invalid.
SkipTopLevelMessage=false
Source=Microsoft.ReportViewer.Common
StackTrace:
at Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.GetCompiledReport(PreviewItemContext itemContext, Boolean rebuild, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.CompileReport()
at Microsoft.Reporting.LocalService.Microsoft.Reporting.ILocalProcessingHost.CompileReport()
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
InnerException:
ExceptionLevelHelpLink=Microsoft - Official Home Page
HResult=-2146233088
Message=The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.
SkipTopLevelMessage=false
Source=Microsoft.ReportViewer.Common
StackTrace:
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateInvalidReportDefinitionException(Exception e)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase1(Stream definitionStream, String& description, String& language, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, Boolean& hasExternalImages, Boolean& hasHyperlinks)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateIntermediateFormat(Byte[] definition, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, IDataProtection dataProtection, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext, IDataProtection dataProtection)
at Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)
InnerException:
This error occurs on this line:
ReportParameter InvNoParam = new ReportParameter("InvNo", this.InvoiceNumber);
this.reportViewer1.LocalReport.SetParameters(InvNoParam);
OK, details: Winforms app. The report is a local report, set to process locally.
Was originally designed in VS2010, and worked fine there.
I have been all over the site AND stack, without any resolution.
I'd rather live with false hope than with false despair.
Continue reading...