rdlc report error in Medium Level Trust

when i`m using rdlc report in medium level trust , it gives this error.

so pls give proper solution.

error like this.

Local report processing requires FullTrust Code Access Security permissions, which is unavailable to the calling code.  Grant the application FullTrust permissions or use ServerReport to execute the report remotely


September 4th, 2015 11:48am

Hi ,

ReportViewer Control only works in medium trust if you are running remote mode. If it it local mode then it requires full trust

Remote mode requires medium trust and. Local mode requires full trust.

If you have any concern about this, please submit a feedback at http://connect.microsoft.com/SQLServer/Feedback and hope Microsoft improve this feature in the next service pack or product release.

Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 12:10pm

Hi, 

According to your description, when opening a rdlc report in medium trust level, you get an error, right? 

In your scenario, are you using Visual Studio 2008? If so, based on my research, we find that add the following code can resolve the problem. 

reportViewer.LocalReport.ExecuteReportInSandboxAppDomain()

This scenario has been tested, for more detail information, please refer to this thread

If you have any other question, please feel free to ask. 

Regards,
Shrek Li

September 7th, 2015 3:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics