I'm trying to programmatically create a pdf file from ASP.NET report. When I run the program it throws the following error:
Error occurred during report processing. Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
I already tried adding
<trust level="Full">
to my applications web.config and reset the IIS.
Any other ideas?
Reinstalling ReportViewer 2005 SP2 and then IIS reset solved my problem.
User contributions licensed under CC BY-SA 3.0