ASP.NET ReportViewer在本地模式下非常慢 [英] ASP.NET ReportViewer very slow in local mode

查看:288
本文介绍了ASP.NET ReportViewer在本地模式下非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地模式下使用.Net 4.5和ReportViewer 11.我的报告呈现非常缓慢(10分钟).我在可以解决此问题,并且确实可以.报表渲染时间从10分钟缩短到10秒,但是现在我在系统其他部分的动态变量不起作用.这是错误:

I'm using .Net 4.5 and ReportViewer 11 in local mode. My reports are rendered very slowly (10 min). I found in this post that adding <trust legacyCasModel="true" level="Full"/> to web.config will solve the problem, and it did. Report render time went from 10 minutes to 10 seconds, but now my dynamic variables in other parts of the system don't work. This is the error:

只能在同构的AppDomain中执行动态操作.

Dynamic operations can only be performed in homogenous AppDomain.

是否可以在仅一页中设置<trust legacyCasModel="true" level="Full"/>或具有相同效果的内容?

Is there a way to set <trust legacyCasModel="true" level="Full"/> or something with the same effect in only one page?

推荐答案

请使用以下链接获取更多信息

Please use following link for more information

https://codeontime.com/blog/2014/08/improving-performance-of-reports-in

https://codeontime.com/blog/2014/08/improving-performance-of-reports-in

添加:

<trust legacyCasModel="true" level="Full"/> 

在部分:Webconfig的configuration/system.web中. 它有助于将报告性能提高10倍.但是会影响MVC项目中的动态对象.

in Section: configuration/system.web of Webconfig. It helps to Improve report Performance by 10 Times. But effects dynamic objects in MVC projects.

这篇关于ASP.NET ReportViewer在本地模式下非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆