|License Type||SaaS & On-Premise|
|Agent Mode||Assess & Protect|
|Main Product Category||.NET Agent|
|Sub Category||Runtime Exception|
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_blacklistsetting to configure the .NET agent to not analyze the application pool containing the application with the ReportViewer control. See the article on Application Pool Filtering for more details.