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