Skip to Content
avatar image
Former Member

C#.NET Crystal SP19 Load report fails since upgrading to Windows Creator edition

This following line fails now ever since I upgraded my version of Windows to the new Creators edition:

theCrystalReport.Load(fullFile, OpenReportMethod.OpenReportByTempCopy);



Here is the error

Error in File CASE_RPT 10372_16888_{F9FC0F04-7E7D-44A1-B4D5-E1E2B96DF6A5}.rpt: Access to report file denied. Another program may be using it.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 27, 2017 at 02:31 PM

    Hi Sean,

    MMMMM. New OS means we have not had time to test it. I'll have to ask DEV to see if it's there scope to add it to SP 21, due out in August.

    In the mean time the error is because when the engine opens a report it makes a copy to the C:\Users\YourName\AppData\Local\Temp folder. Your application does not have permission to access it.

    Use ProcesssMonitor and filter on devenv.exe or your exe and you should see the error being generated and possibly how to fix it.

    Likely the easiest work around is to grant full read/write permissions to the ...\temp folder.

    I don't know if it even uses that folder structure any more, MS tends to change things about where temp files are stored and who has access to it. Try adding it if it doesn't exist.

    Could also be the MS AV or Firewall software is blocking access so you'll have to do more debugging.

    Oh, and I have seen that happen to me also when in debug mode I stop the debugger and it leaves a copy behind so delete all files in your temp folder, some will be locked so skip those. May even require you to close VS.

    Make sure CR Designer doesn't have the report open also.

    Don

    Add comment
    10|10000 characters needed characters exceeded