GenerateQueryReport Load report failed.

GenerateQueryReport Load report failed.

这个问题又继上一个Crystal reports的问题整死我。花费了一个晚上才解决。damn

现在share给大家。

解决方案如下

There are various reason for this error. in the following list all may cause this problem
1.
public static ReportDocument rep = new ReportDocument();
   protected void Page_UnLoad(object sender, EventArgs e)
   {
       this.CrystalReportViewer1.Dispose();
       this.CrystalReportViewer1 = null;
       rep.Close();
       rep.Dispose();
       GC.Collect();
   } 

 2. crystal report assemblies installed on your machine do not reflect the assemblies you have on your web.config

3. crystal version installed on the server is different with the one you want to invoke from your site

4. application pool where your reports run is not set to LOCAL SERVICE

5. read and write permission is not enabled on your root folder

6. crystalreportviewer folder is not copied to your operating folder.   7. lack of permission in following  directoryThe fix: When Crystal Reports opens a file, it uses the Windows temporary folder (typically C:\Windows\Temp\) as a scratch-pad. You need to give Crystal Reports explicit permission to read and write to this folder. 

How-to: Under XP, ASP.NET runs CR under ASPNET; with most of the Windows Server flavors, CR runs as NETWORK SERVICE. Make sure that this identity has permission to read and write to the Windows temporary folder.
1. Ensure the RPT file name is correct. Filename must be a fully qualified valid path name (such as C:\MyApp\MyReport.rpt).
2. The ASPNET account has permissions to open the file.  Make sure the folder containing the file and the file itself has the same permissions as your application folder.


But still i don't found any solution 
next i tried to discover my iis different settings. and i found an interesting option.
* select your application pool for your apllication or website
* Click on Recycling (Right side panel)
* Reduce the value of Regular time interval 1740 to 20 min or set your desire value you want
* this  will release any resource hold by iis.

以上信息来源(The above informations came from )
http://littleprograming.blogspot.hk/2013/02/crystal-report-error-load-report-failed.html

转载于:https://my.oschina.net/u/933229/blog/165094

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值