SSRS throws "The operation has timed out."

博客指出Reporting Services集成模式下通过应用程序渲染报表时,有时会抛出“操作已超时”错误。并给出两种解决方案,一是设置ReportingService2010的Timeout属性;二是在SharePoint集成模式下,通过更新“web.config”文件更改IIS默认超时时间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Reporting Services in integrated mode sometimes throws "The operation has timed out."

when render report through application.
The solutions for this problem are listed below:
1. ReportingService2010 reportingService2010=new ReportingService2010();
reportingService2010.Timeout=120000;

or
2. In SharePoint integrated mode, the default timeout is 120 seconds, which is
the default timeout of IIS. We can change it by updating "web.config".
open "c:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config",
locate <httpruntime maxrequestlength="51200"/>,
and change this sentence to
<httpruntime maxrequestlength="51200" executionTimeout="9000"/>

转载于:https://www.cnblogs.com/jenneyblog/archive/2010/06/08/1754123.html

//校验文件是否已经导入过 /* String checkFileName "select count(*) from LDTraceImport where inFileName='"+FileName+"' AND inFType='Customer'AND inSType='BlackList'"; ExeSQL tExeSQL = new ExeSQL(); SSRS tSSRS = new SSRS(); tSSRS = tExeSQL.execSQL (checkFileName) ; int result = Integer.parseInt (tSSRS.GetText (1, 1)); System.out.println("result: "+result); */ File uploadpath = new File(ImportPath); if (!uploadpath.exists()) uploadpath.mkdirs(); //保存上传的文件到指定的目录 try { //创建 目标文件对象,将上传文件写入目标位置 item.write(new File(ImportPath + FileName)); count =1; catch (Exception e) System.out.println("upload file error ..."+ e.getMessage()); //输出参数 String tRela String Result = String Result1 = TransferData tTransferData = new TransferData(); boolean res = true; CustomerRecordChkResBl tBL = new CustomerRecordChkResBl (); if (count > 0) { GlobalInput tG = new GlobalInput(); tG = (GlobalInput) session.getValue("GI"); // 准备传输数据 VData VData tVData = new VData(); FlagStr = tTransferData.setNameAndValue ("FileName", ImportPath+ FileName) ; tTransferData.setNameAndValue ("inFType", "Customer"); tTransferData.setNameAndValue ("serNo", aSerNo);//理赔定点医院 tVData. add(tTransferData); tVData.add(tG); try { res = tBL.submitData(tVData); succNum=tBL.getSuccNum(); errNum=tBL.getErrNum(); catch (Exception ex) Content = ”处理失败,原因是:"+ ex.toString(); FlagStr ="Fail"; 于 else l Content="上载文件失败!”; FlagStr ="Fail"; String errMess = ""; if (res) ( System.out.println(" Susseus...") ; //Content=”导入完成!”; FlagStr = "Succ"; if (tBL.getMsg() != null && !"".equals(tBL.getMsg())) Content = (String) tBL.getMsg(); else [ System.out.println(” Fail..."); if (tBL.getMsg() != null && !"".equals(tBL.getMsg())) ( Content =(String) tBL.getMsg(); FlagStr ="Fail"; actFileName = tBL.getFileName () ; System.out.println(" FlagStr..." + FlagStr); System.out.println(" Content..." + Content); System.out. println(" Result..."+ Result); System.out.println(" FileName..." + FileName); 结合上一个问题里面的代码,给代码添加注释,如果调用方法,请解释一下,谢谢
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值