码迷,mamicode.com
首页 > 其他好文 > 详细

vs2013中使用水晶报表报错,提示没有安装环境

时间:2015-08-27 18:24:16      阅读:640      评论:0      收藏:0      [点我收藏+]

标签:

win7 64位系统,使用vs2013, 用水晶报表报以下错误,  安装了  CrystalReports10_5 中的 CRRedist2008_x64.msi   CRRedist2008_x86.msi   仍然报以下错误。

“/”应用程序中的服务器错误。


An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

源错误: 

行 13: {
行 14:     //创建水晶报表文档
行 15:     ReportDocument myReport = new ReportDocument();
行 16: 
行 17:     protected void Page_Load(object sender, EventArgs e)

 

解决方法:

1、清空项目对应的.NET版本下的 Temporary ASP.NET Files 文件夹

如:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files

2、重新生成项目;

 

类似问题参考文档:  

http://bbs.csdn.net/topics/390897062#

http://www.cnblogs.com/terrysun/archive/2010/03/17/1688112.html

vs2013中使用水晶报表报错,提示没有安装环境

标签:

原文地址:http://www.cnblogs.com/trueblue/p/4763917.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!