PranasLu's Blog

2010-01-19

Error log – Failed to load expression host assembly. Details: Operation could destabilize the runtime.

Filed under: Error log, Programming — pranaslu @ 17:41

Klaidos tekstas:

System.Web.HttpUnhandledException: Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. —> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Operation could destabilize the runtime.

   …

   at Nrd.Framework.Common.Reports.ReportGenerator.GenerateReport(ReportData reportData, IEnumerable`1 ReportDataSources, IEnumerable`1 reportParameters) in D:\Pranas\Stepis\Programavimas\HISREP\SYSIMP\VSSolution\Source\CommonElements\Common\Reports\ReportGenerator.cs:line 39

   at Nrd.Framework.Common.UI.ReportPageBase`1.GenerateReport(ReportData reportData, IEnumerable`1 ReportDataSources, IEnumerable`1 reportParameters) in D:\Pranas\Stepis\Programavimas\HISREP\SYSIMP\VSSolution\Source\CommonElements\Common\UI\ReportPageBase.cs:line 101

   at Hisrep.PresentationLayer.WebSite.Reports.PrintoutGenerator.Page_Load(Object sender, EventArgs e) in D:\Pranas\Stepis\Programavimas\HISREP\SYSIMP\VSSolution\Source\PresentationLayer\WebSite\Reports\PrintoutGenerator.aspx.cs:line 77

   …

   at Nrd.Framework.Common.UI.ReportPageBase`1.OnLoad(EventArgs e) in D:\Pranas\Stepis\Programavimas\HISREP\SYSIMP\VSSolution\Source\CommonElements\Common\UI\ReportPageBase.cs:line 32

   …

Sprendimas:

Įdėjau eilutę:

  reportViewer.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence);

prieš:

  reportViewer.LocalReport.Render(…)

 

Po to vėl pradėjo mest tą pačią klaidą. Paaiškėjo, kad tą klaidą meta tada, kai yra “Report parameters”. Workaroundas – visus duomenis perduoti per “Report Datasources”

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: