Hi All,
We are getting UnauthorizedAccessException while the compilation of report.
During compilation temporary assembly has been generated by Microsoft.ReportingServices.ReportProcessing at location
C:\Users\<logged-in user>\AppData\Local\Temp\ after compilation has been done it tries to delete it and while deliting following exception has been thrown.
Please let us know the cause of it.
Failure(s) in 'Reporting' transformation
An error occurred during report rendering. The report cannot be processed.
Microsoft.Reporting.WinForms.LocalProcessingException
An error occurred during local report processing.
at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
at Microsoft.Reporting.WinForms.LocalReport.GetParameters()
at Agilent.IntelligenceReporter.HostAdapter.ReportControls.ExternalRenderControlService.CheckReportParameters()
at Agilent.IntelligenceReporter.HostAdapter.ReportControls.ExternalRenderControlService.RenderReport(String format, String deviceInfo, String extensionName, String extensionType, String extensionInitialization)
Microsoft.Reporting.DefinitionInvalidException
The definition of the report 'Main Report' is invalid.
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.WinForms.LocalReport.CompileReport()
Microsoft.ReportingServices.ReportProcessing.ReportProcessingException
An unexpected error occurred in Report Processing.
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDomain
compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions)
at Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase& snapshot)
System.UnauthorizedAccessException
Access to the path 'C:\Users\agtliuser\AppData\Local\Temp\expression_host_563a018d63ec4bf8bc7cae7772523d3f.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Microsoft.ReportingServices.ReportProcessing.ReportCompileTime.InternalCompile(Report report, AppDomain compilationTempAppDomain, Boolean refusePermissions)
at Microsoft.ReportingServices.ReportProcessing.ReportCompileTime.Compile(Report report, AppDomain compilationTempAppDomain, Boolean refusePermissions)
at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.Phase3(ParameterInfoCollection& parameters, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions)
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.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDomain
compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions)
Thanks & Regards,