Hi Team,
We are trying to run the .rdlc report using c# code in asp.net using reportviewer control in aspx page.
And when we run this website on prod server we are getting following error:
****************************************************************************************************************
Exception in page load eventand exception is
---Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred
during local report processing. --->
Microsoft.Reporting.DefinitionInvalidException: The definition of the report
'Test-Consolidate.rdlc'
is invalid. --->
Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An
unexpected error occurred in Report Processing. --->
System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified. at
Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.InternalCompile(Report
report, AppDomain compilationTempAppDomain, Boolean refusePermissions) at
Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.<>c__DisplayClass1.b__0()
at
Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.b__0(Object
state) at System.Security.SecurityContext.Run(SecurityContext securityContext,
ContextCallback callback, Object state) at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody
callback) at
Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.Compile(Report
report, AppDomain compilationTempAppDomain, Boolean refusePermissions) at
Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase3(ICatalogItemContext
reportContext, ParameterInfoCollection& parameters, AppDomain
compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions,
Dictionary`2& groupingExprCountAtScope) at
Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateIntermediateFormat(ICatalogItemContext
reportContext, Byte[] definition, IChunkFactory createChunkCallback,
CheckSharedDataSource checkDataSourceCallback, ResolveTemporaryDataSource
resolveTemporaryDataSourceCallback, DataSourceInfoCollection
originalDataSources, PublishingErrorContext errorContext, AppDomain
compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions,
IDataProtection dataProtection, String& description, String& language,
ParameterInfoCollection& parameters, DataSourceInfoCollection&
dataSources, UserLocationFlags& userReferenceLocation, ArrayList&
dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks) at
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(ICatalogItemContext
reportContext, Byte[] reportDefinition, IChunkFactory createChunkFactory,
CheckSharedDataSource checkDataSourceCallback, ResolveTemporaryDataSource
resolveTemporaryDataSourceCallback, DataSourceInfoCollection
originalDataSources, AppDomain compilationTempAppDomain, Boolean
generateExpressionHostWithRefusedPermissions, ReportProcessingFlags
processingFlags, IDataProtection dataProtection) --- End of inner exception
stack trace --- at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(ICatalogItemContext
reportContext, Byte[] reportDefinition, IChunkFactory createChunkFactory,
CheckSharedDataSource checkDataSourceCallback, ResolveTemporaryDataSource resolveTemporaryDataSourceCallback,
DataSourceInfoCollection originalDataSources, AppDomain
compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions,
ReportProcessingFlags processingFlags, IDataProtection dataProtection) at
Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context,
Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions,
ControlSnapshot& snapshot) --- End of inner exception stack trace --- at
Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context,
Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions,
ControlSnapshot& snapshot) at
Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase
itemContext) at Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase
context, Boolean rebuild, Byte[]& reportDefinition, ControlSnapshot&
snapshot) at
Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase
itemContext, Boolean rebuild, ControlSnapshot& snapshot) at
Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession() --- End of
inner exception stack trace --- at
Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession() at
Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1
parameters)
*************************************************************************************************
Just to update you that, We have already installed https://www.microsoft.com/en-us/download/details.aspx?id=6442
package also on our server and flowing dll are also exists in c:\Windows\Assembies folder of server
Microsoft.ReportViewer.Common
Microsoft.ReportViewer.DataVisualization
Microsoft.ReportViewer.rocessingObjectModel
Microsoft.ReportViewer.WebForms
Microsoft.ReportViewer.Winforms
Please let us know what we need to do to resolve this issue.
Regards,
Anoop