Definition of InvalidException from Microsoft Report Viewer 2008

My application (winforms.net 2.0 / vs2008) works fine on my dev machine, but on one of the test machines I am getting this exception. Has anyone come across something similar?

************** Exception Text **************
Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'Main Report' is invalid. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information.
   at Microsoft.ReportingServices.Diagnostics.DataProtectionLocal.ProtectData (Byte [] data, Int32 dwFlags)
   at Microsoft.ReportingServices.DataExtensions.DataSourceInfo..ctor (String originalName, String extension, String connectionString, Boolean originalConnectStringExpressionBased, Boolean integratedSecurity, String prompt)
   at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.ReadDataSource (DataSourceNameValidator dataSourceNames, PublishingContext context)
   at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.ReadDataSources (PublishingContext context)
   at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.ReadReport ()
   at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.Phase1 (CatalogItemContext reportContext, Byte [] definition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, String & description, String & language, DataSourceInfoCollection & dataFlinks & hashes
   at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.CreateIntermediateFormat (CatalogItemContext reportContext, Byte [] definition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String & description, String & language, ParameterInfoCollection & parameters, DataSourceInfoCollection & dataSources, UserLocationFlags & userReferenceLocation, ArrayList & dataSetsName, Boolean & hasExternalImages, Boolean & hasHyperlinks)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileReport (CatalogItemContext reportContext, Byte [] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String & reportDescription, String & reportLanguage, ParameterInfoCollection & parameters, DataSourceInfoCollection & dataSources, UserLocationFlags & userReferenceLocation, ArrayList & dataSetsName, Boolean & hasExternalImages, Boolean & hasHyperlinks)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat (CatalogItemContext reportContext, Byte [] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDataSourceCallback, compilationTempanAppDomain
   at Microsoft.Reporting.ReportCompiler.CompileReport (CatalogItemContext context, Byte [] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase & snapshot)
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.ReportCompiler.CompileReport (CatalogItemContext context, Byte [] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase & snapshot)
   at Microsoft.Reporting.StandalonePreviewStore.StoredReport.CompileReport ()
   at Microsoft.Reporting.StandalonePreviewStore.StoredReport.get_Snapshot ()
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport (CatalogItemContext context, Boolean rebuild, ReportSnapshotBase & snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport (CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase & snapshot)
   at Microsoft.Reporting.LocalService.CompileReport (CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport ()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport ()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters (IEnumerable`1 parameters)
   at XXX.Helpers.Report.PrintFavs (List`1 list, String header, String filename) in C: \ Data \ projects \ workdir_cpv \ Src \ Classes \ Helpers \ Report.cs: line 112
0


source to share


3 answers


The vs2008 designer for reporting and viewing reports is not backward compatible with 2.0. Likewise, you cannot generate 2005 reports with vs2008 - that might be your problem.



0


source


I had something similar once. You might want to make sure that the ReportViewer DLL is installed on the test machine in the GAC. Microsoft has created an installer to make this easier.



Q: Are you using Reporting Services locally with a report viewer in winforms?

0


source


My installer copies all required DLLs

Microsoft.ReportViewer.Common.dll

Microsoft.ReportViewer.ProcessingObjectModel.dll

Microsoft.ReportViewer.Winforms.dll

to the ProgramFiles / myAppname folder.

It works fine on Vista / XP, but the problem is Win98. I will try to install these DLLs in the GAC, maybe this is the problem. I am trying to avoid running additional installers inside my installer.

@ keithwarren7:

if it's true, then it's really stupid. do you know a simple and free reporting engine for .net 2.0?

0


source







All Articles