Friday, February 11, 2011

Failed to load expression host assembly. Details: Could not load file or assembly 'expression_host_f7d608c0ebb24f48bac018b81c6ff665, Version=11.2.30319.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)

This error normally occurs if you try to use the Report Viewer control or local RDLC reports.

This is because RDLC or Report Viewer control requires the website to run in Full trust mode.

MS Response

This issue is by design. Local mode requires full trust. The main reason for it is because local mode processing and rendering engine are hosted with the viewer and those operations demand full trust.

3 comments:

SergioT said...

How to solve this????
how did you set full trust???
I am using vs2010 and everything was going ok, but some day NO one of my reports works!!! i am on panic!!!Help pleaseeee

Shantha said...

You need the full trust in the web.config for your application.

Shantha said...

<system.web>
<trust level="Full" />
</system.web>

Post a Comment