internal byte[] Compile(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, AppDomain compilationTempAppDomain, bool refusePermissions, PublishingVersioning versioning) { byte[] result = null; if (m_builder.HasExpressions && versioning.IsRdlFeatureRestricted(RdlFeatures.ComplexExpression)) { m_errorContext.Register(ProcessingErrorCode.rsInvalidComplexExpressionInReport, Severity.Error, Microsoft.ReportingServices.ReportProcessing.ObjectType.Report, "Report", "Body"); } else { m_expressionHostAssemblyHolder = expressionHostAssemblyHolder; RevertImpersonationContext.Run(delegate { result = InternalCompile(compilationTempAppDomain, refusePermissions); }); } return(result); }
public byte[] Compile(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, AppDomain compilationTempAppDomain, bool refusePermissions, PublishingVersioning versioning) { byte[] result = null; if (this.m_builder.HasExpressions && versioning.IsRdlFeatureRestricted(RdlFeatures.ComplexExpression)) { this.m_errorContext.Register(ProcessingErrorCode.rsInvalidComplexExpressionInReport, Severity.Error, ReportProcessing.ObjectType.Report, "Report", "Body", new string[0]); } else { this.m_expressionHostAssemblyHolder = expressionHostAssemblyHolder; //todo: can delete? RevertImpersonationContext.Run(delegate { result = this.InternalCompile(compilationTempAppDomain, refusePermissions); }); // result = this.InternalCompile(compilationTempAppDomain, refusePermissions); } return(result); }