- Joined
- Oct 8, 2009
- Messages
- 2
- Reaction score
- 0
I am involved in the development of an ASP.NET web application that uses pass-through Windows authentication. This application provides users with a number of reports, developed with the Visual Studio 2008 report designer and deployed in Local mode via the Microsoft ReportViewer version 9.0.0.0 (2008 Redistributable) component.
This application works fine in my development environment, and also on the dev environment provided by our client. However, the application failed to work on a pre-production environment. More specifically, 3 out of the 4 available reports fail to load and result in the following message being displayed by the ReportViewer component:
The ReportViewer assemblies (Common, WebForms, ProcessingObjectModel etc.) are all registered in the GAC (both versions 9.0.0.0 and 8.0.0.0 on the pre-prod machine)
The reports are invoked by first constructing a datasource programmatically using a TableAdapter followed with some filtering. Next, the datasource and report parameters are assigned, followed by an invocation to "RefreshReport " to display the report.
I have tried an alternative suggested on the net, by replacing the method above by the method: ExecuteReportInCurrentAppDomain . This however resulted in an AccessViolationException .
The odd aspect of all this is that one of the 4 reports works fine, which seems to eliminate a purely environmental issue. The only apparent difference between the working report and the failing ones is that it does not use the built-in report parameters functionality.
Can anyone please suggest a solution to the above?
Thanks,
Colin
This application works fine in my development environment, and also on the dev environment provided by our client. However, the application failed to work on a pre-production environment. More specifically, 3 out of the 4 available reports fail to load and result in the following message being displayed by the ReportViewer component:
Code:
Failed to load expression host assembly. Details: Request for the permission
of type 'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
The ReportViewer assemblies (Common, WebForms, ProcessingObjectModel etc.) are all registered in the GAC (both versions 9.0.0.0 and 8.0.0.0 on the pre-prod machine)
The reports are invoked by first constructing a datasource programmatically using a TableAdapter followed with some filtering. Next, the datasource and report parameters are assigned, followed by an invocation to "RefreshReport " to display the report.
I have tried an alternative suggested on the net, by replacing the method above by the method: ExecuteReportInCurrentAppDomain . This however resulted in an AccessViolationException .
The odd aspect of all this is that one of the 4 reports works fine, which seems to eliminate a purely environmental issue. The only apparent difference between the working report and the failing ones is that it does not use the built-in report parameters functionality.
Can anyone please suggest a solution to the above?
Thanks,
Colin
Last edited: