问题描述
载入水晶报表时出现如下错误:---------------------------------------------------------------------------------------------------------------------文件UNKNOWN.RPT内出错:无法将请求提交给后台处理。Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Runtime.InteropServices.COMException:文件UNKNOWN.RPT内出错:无法将请求提交给后台处理。SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.StackTrace:[COMException(0x800002ad):文件UNKNOWN.RPT内出错:无法将请求提交给后台处理。]CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&DocumentPath,Int32Options)+0CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&DocumentPath,Int32Options)+87CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+279[Exception:加载报表失败。]CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+340CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(Stringfilename,OpenReportMethodopenMethod,Int16parentJob)+870CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(Stringfilename)+73GSNET.Web.ShowReport.Page_Load(Objectsender,EventArgse)+169System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtrfp,Objecto,Objectt,EventArgse)+15System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Objectsender,EventArgse)+33System.Web.UI.Control.OnLoad(EventArgse)+99System.Web.UI.Control.LoadRecursive()+47System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint,BooleanincludeStagesAfterAsyncPoint)+1436----------------------------------------------------------------------------------------------------------------------------在网上找的的大部分反馈是,因为服务器C盘没有修改权限,需加上User用户的修改权限。问题是因为安全问题,服务器提供商死活不愿意。没办法,在这里请教还有没有其他的办法??
解决方案
解决方案二:
水晶报表必须获得临时目录的可写权限,你可以协商一下服务商让他把temp目录改到其他盘,然后再给个权限看看,呵呵。不过水晶报表放在没有全权的服务器上哈确实会有不少麻烦另外你用了RAS的ReportClientDocument了?
解决方案三:
水晶报表在托管服务器中部署不太方便,可以考虑使用自己的服务器;
解决方案四:
Mark