A page containing certain ASP.NET controls, such as the legacy ASP.NET ReportViewer control, throws an unhandled exception when the .NET agent is running:
> Loading this assembly would produce a different grant
set from other instances
The application's web.config file specifies
You can't use the Contrast .NET agent with applications using the
Use one of the following strategies to resolve this issue:
legacyCasModel="false". The ReportViewer control's performance will suffer but will still work.
app_pool_denylistsetting to configure the .NET agent to not analyze the application pool containing the application with the ReportViewer control.