the above line of code i need to put in code behind file for each and every reportviewer or for each and every assembly that i have referenced.
So whats up my idea is, if it possible to register as "AddTrustedCodeModuleInCurrentAppDomain" under web.config file for report viewers or simply assembly.
How to do it in web.config.
Just not by adding assembly, i need to be "AddTrustedCodeModuleInCurrentAppDomain" for local reports of reportviewers....
If you win, you need not have to explain...If you lose, you should not be there to explain!
shree_ars
Participant
1395 Points
776 Posts
Web.Config included AddTrustedCodeModuleInCurrentAppDomain for assembly..
Mar 29, 2012 05:00 AM|LINK
Hi..
I have made a assembly reference in the .rdlc file and used the methoda and functions from assembly.
For that i have added the assembly as below
ReportViewer.LocalReport.AddTrustedCodeModuleInCurrentAppDomain(assembly....)
the above line of code i need to put in code behind file for each and every reportviewer or for each and every assembly that i have referenced.
So whats up my idea is, if it possible to register as "AddTrustedCodeModuleInCurrentAppDomain" under web.config file for report viewers or simply assembly.
How to do it in web.config.
Just not by adding assembly, i need to be "AddTrustedCodeModuleInCurrentAppDomain" for local reports of reportviewers....