Skip to Content
author's profile photo Former Member
Former Member

CR Basic for VS 2008, Error in File, Disk Full error

hi,

i'm hoping someone can explain why Crystal Reports (for Visual Studio 2008) thinks my disk is full, there is 40Gb free. This is a transient error that occurs randomly, once every day or two, the server (windows 2003) exports approx 500 reports per day.

the full error message is:

System.Runtime.InteropServices.COMException (0x80000211): Error in File C:\WINDOWS\TEMP\temp_9a4784bf-7998-4fd1-b359-5e8ad443cd7f {4BA4A8D8-125B-49E2-AF86-8D9A55244609}.rpt: Disk full. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

The asp.net code i'm using is this:

ReportDocument rpt = new whatever();

rpt.ExportToDisk(ExportFormatType.PortableDocFormat, FilePath);

rpt.Close();

rpt.Dispose();

Registry settings (for InprocServer) are as follows

[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\Report Application Server\InProcServer]

"DataEngineName"="crpe32.dll"

"CorbaDispatcherCOMThreadingModel"="STA"

"ConnectionDirMgrProgIDs"="CrystalReports105.LocalConnMgr.0;CrystalReports105.ODBCConnMgr.0"

"CMSNameService"="localhost"

"AgentTimeoutMins"="30"

"AgentLimit"="500"

"TempDir"=""

"SupportSelectDistinctRecords"="Yes"

"SupportAsnycSQL"="Yes"

"StreamListenPort"="1566"

"SupportPushDownGroupBy"="Yes"

"ShowViews"="Yes"

"ShowTables"="Yes"

"ShowSynonyms"="No"

"ResultFieldsSortMethod"="1"

"ShowSystemTables"="No"

"RequestWorkerThread"="2"

"ReportDirMgrProgID"="CrystalReports105.LocalReportMgr.0"

"ProcessingExtensionPath"="ProcessExt"

"ProcessAffinityMask"="-1"

"PrintJobsCacheTrimToNumOfObjectIfNoChoice"="5"

"PrintJobsCacheMinCleanupApartInterval(ms)"="30000"

"PrintJobsCacheMaxNumOfObject"="70"

"PrintJobsCacheMaxDataAge(sec)"="1200"

"PrintJobsCacheMaxCachedJobUseCount"="10"

"PrintJobsCacheLogging"="No"

"PrintJobsCacheLifeTime(min)"="20"

"PrintJobLimit"="75"

"InProcAgents"="Yes"

"EnterpriseRequestTimeout"="600000"

[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\Report Application Server\InProcServer\LocalConnectionMgr]

"ConnectionDirectoryPath"="c:
"

[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\Report Application Server\InProcServer\ReportDocument]

"SaveWithPTSCube"="Yes"

"SelectDistinctRecords"="No"

"RowsetBatchSize"="100"

"ReportStyle"="9"

"SaveDataWithDoc"="Yes"

"PushDownGroupBy"="No"

"NumOfCachedBatches"="-1"

"NumOfBrowsingRecords"="100"

"MaxNumOfRecords"="-1"

"CheckCancelEventInterval"="1000"

"ImageFormat"=""

"CubeBuilderType"="2"

"AsnycSQL"="No"

[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\Report Application Server\InProcServer\RptDirMgrProgIDs]

"default"="CrystalReports105.LocalReportMgr.0"

"ras"="CrystalReports105.LocalReportMgr.0"

"file"="CrystalReports105.LocalReportMgr.0"

thanks

tim

Add a comment
10|10000 characters needed characters exceeded

Related questions

14 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2008 at 02:32 PM

    Hi,

    As Crystal makes an instance of a report in a Temp directory, so It might be possible that this issue occurs due to the temp directory.

    Give it a try by deleting the contents of temp directory.

    Need more info-

    Is the issue on production machine only or also on a development box?

    Windows or Web application?

    What runtimes have you used to deploy the application?

    Regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hye,

      Do you have a solution to this, because i have exactly the same problem.

      It gives me the error

      "Disk Full"

      or

      "Process cannot access the file because it is being used by another process"

      I find that the problem happened when 2 users try to create a report at the same time...

      I' m closing the stream, the report like Ludek Uher says..and i'm using ADO.Net

      It's making me crazy..

      Mickael

  • Posted on Jan 22, 2009 at 10:56 PM

    Make sure you are using the option to open a temp copy. It is Windows that is locking the file, likely if you try to open 20 copy's in notepad you'll get the same error.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hye Don,

      Thanks for the reply, i agree with you, it may be the solution. But how can i do this, my code is the following

      Dim report As ReportDocument

      report = New ReportDocument()

      report.FileName = Server.MapPath("The_Report.rpt")

      report.SetDataSource(DatasetSource)

      Dim streamficheiro As Stream = report.ExportToStream(ExportFormatType.PortableDocFormat)

      I think the problem is in Server.MapPath("The_Report.rpt").

      Thanks for the help.

      Mickael

      Edit: I think i found the error, it's happens here Dim streamficheiro As Stream = report.ExportToStream(ExportFormatType.PortableDocFormat)

      Edited by: Mickael Marques on Jan 30, 2009 1:27 PM

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2009 at 05:00 PM

    Hi,

    has anyone found a solution for this problem ?

    We have an ASP.NET application that runs on a win 2003 server and we've got Crystal Reports 2008.

    We get the error at the last line (not allways , may be 100 times a day)

    CrystalReport1 report = new CrystalReport1();
    report.SetDataSource(source); // source is an array of objects
    MemoryStream oStream = null;
    oStream = (MemoryStream)report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

    System.Runtime.InteropServices.COMException (0x80004005): The process cannot access the file because it is being used by another process.    at
    CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
    at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)

    By the way in our reports there 8-10 subreports, is this error about max print jobs ?

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Could be max print jobs. You're not giving enough info. In the thread, there are a number of suggestions to try to resolve the issue. Have you attempted any of these? If so, which ones? Is this happening on your dev system or after you deploy? Are you using the latest SP for CR 2008? Are you disposing the report object once you are done with it? Knowing about the max print jobs, have you attempted to modify the registry entry that controls this?

      Ludek

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2009 at 05:21 PM

    Hi Ludek,

    thanks for the reply.

    I have the latest SP and HotFix for CR 2008 installed. This happens on the production server. At first i got "Disk full" error and then i called the Close and Dispose methods and it worked fine.

    Now i get "The process cannot access the file because it is being used by another process" error.

    I have tried the suggestions but not increasing the max print jobs. I have read about max print jobs in another thread, don't know much about it. Well because i have lots of subreports(8-10) in one report, when 10 person calls these reports at the same time there will be 80-100 print jobs, right ? so it reaches the max number, default is 75. Do i get this error if reach the max print jobs ? I will set it to 1000 and lets se what happens...

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

    • I have tried the suggestions but not increasing the max print jobs. I have read about max print jobs in another thread, don't know much about it. Well because i have lots of subreports(8-10) in one report, when 10 person calls these reports at the same time there will be 80-100 print jobs, right ?

      - at minimum. Each page through, drill down, etc., will also be a print job

      so it reaches the max number, default is 75. Do i get this error if reach the max print jobs ?

      - quite possible. One place to look is the even viewer. If you see a bunch of messages along the lines of; job submitted, waiting for available license, you are loading things heavily

      I will set it to 1000 and lets se what happens...

      - sounds good. setting htis to -1 equals to no limit. However, you need to realize that you are stressing the hardware at that point and eventually you may "crash" the server.

      BTW., for CR 12 the registry is; HKLM\software\business objects\suite 12.0\report application server\inprocserver

      Ludek

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2009 at 12:52 PM

    >

    > One place to look is the even viewer. If you see a bunch of messages along the lines of; job submitted,

    > waiting for available license, you are loading things heavily

    >

    Do you mean event viewer. I don't see anything there...

    increasing the max print job value didn't work either.

    I have set it to 1000 and then -1. I still get the same error.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2009 at 05:58 PM

    In the application events something with the source Crystal reports or business objects ?

    No i don't see anything in the event viewer.

    Well i found something interesting about the files in win\temp.

    In a week when i stop the iis i delete all of the temp folder.

    Now i see 55 files like

    temp_db154a92-00e1-4a16-bbed-ef53334e3da9.rpt

    temp_dbf26835-c305-4aed-ab7e-8ca980cc2831 {DFCD3AF1-F4D7-4906-8D70-C65F0A0AEFFF}.rpt

    I know why they are still there, because when i get the error i don't close or dispose them.

    and 1200 file like this

    ~cpe{0A03AFB6-B0C7-4781-A813-76FAF55583C3}.tmp

    they are all 1KB...

    when try to open them i see binary files.

    But the last one is important. 146 files like these

    ~sqFCF5.tmp

    ~sqF710.tmp

    When i try to open them i get the error : "The process cannot access the file because it is being used by another process."

    So lots of users try to open a report and when two processes opens temp file with the same name like "~sqF710.tmp" then one of them get this error ?

    What can be solution for this ?

    Thanks...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 09, 2009 at 02:21 PM

    Yes and No, i didn't understand what you mean. Actually i use .net objects like on the example below. source is an array of Entity classes but i get these objects from a service call : GetEntities(.....);

    Enty[] source = GetEntities(.....);
    report.SetDataSource(source);

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mustafa,

      Currently we have an outstanding issue with another customer that we are trying to track down, where if an XML Transform is loaded and applied to an ADO .NET dataset, even one that is not used by Crystal, we randomly get errors like "Disk Full" in a multi-threaded executable.

      If this is due to the XML Transform directly or something else, we do not know yet, and we are investigating.

      This is why Ludek asked you about the XML transform. We were thinking that if you were applying one, or doing something else then it may point to the issue.

      Trevor

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2009 at 03:15 PM

    Hi Trevor,

    i see, well the function GetEntities(.....); calls a WCF Web Service, so XML Transform is loaded behind and

    array of objects are returned. So this can be due to the XML Transform ?

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2009 at 02:38 PM

    We are experiencing a similar problem in VS 2005 with Cristal Report 10.2.3600.0. It's often hard to reproduce. The message is one of

    "Disk Full"

    or

    "Process cannot access the file because it is being used by another process".

    We do use .xsd files and could be related to: http://forums.businessobjects.com/cs/forums/thread/65218.aspx

    However, I am unable to get to that thread (Internet Explorer cannot display the page).

    Any help would be appreciated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 12:52 PM

    Hi Trevor,

    i can't run my application with out this code. Well i have to write the data hardcoded and let 400-500 users test the application whole day, but i will try..

    Any information about your investigation would be appreciated.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Has anyone had any luck with this problem?

      I am getting the "The process cannot access the file because it is being used by another process." Exception being thrown on the Export to Disk Call as with where the other users were having their problems.

      If anyone has had any progress on this matter I would greatly appreciate hearing how and what people have done.

      Many Thanks All.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.