c# - RDLC report error : Failed to load expression host assembly -


i trying bind data rdlc file in report viewer. report works fine in machines report viewer redistributable installed, not on others. though have reportviewer dll's in application bin error. using vs 2013 , click once.

an error occurred during local report processing. - microsoft.reportingservices.reportprocessing.reportprocessingexception: failed load expression host assembly. details: loading assembly produce different grant set other instances. (exception hresult: 0x80131401)

    private void faxtemplatemultifaxload(object sender, eventargs e)     {         try         {             this.multireportviewer.processingmode = processingmode.local;             var permissionset = new permissionset(permissionstate.none);             permissionset.addpermission(new fileiopermission(permissionstate.unrestricted));             permissionset.addpermission(new securitypermission(securitypermissionflag.execution |                         securitypermissionflag.controlprincipal));              this.multireportviewer.localreport.setbasepermissionsforsandboxappdomain(permissionset);             this.multifaxbindingsource.datasource = this.multitbafaxdata;             this.multireportviewer.localreport.reportpath = @"c:\enterpriseapp-dev\workstation\" + "report.rdlc";             this.multireportviewer.localreport.enableexternalimages = true;             this.multireportviewer.refreshreport();             this.multireportviewer.localreport.releasesandboxappdomain();         }         catch (exception ex)         {             messagebox.show(ex.message);         }     } 

here stack trace

at microsoft.reporting.winforms.localreport.internalrender(string format, boolean allowinternalrenderers, string deviceinfo, pagecountmode pagecountmode, createandregisterstream createstreamcallback, warning[]& warnings)

at microsoft.reporting.winforms.localreport.internalrender(string format, boolean allowinternalrenderers, string deviceinfo, pagecountmode pagecountmode, string& mimetype, string& encoding, string& filenameextension, string[]& streams, warning[]& warnings)

at microsoft.reporting.winforms.asyncmainstreamrenderingoperation.renderlocalreport(localreport report)

at microsoft.reporting.winforms.reportviewer.asyncreportoperationwrapper.performoperation()

at microsoft.reporting.winforms.processingthread.processthreadmain(object arg)

any fix appreciated


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo