Errors when file cache is enabled
johnnix
Serrai, Greece
Hello,
For some time now I noticed that in some Windows 7 systems when a user is trying to create a report he gets a strange error like "The following error(s) have occured: Canot open file "C:\Program Files (x86)\xxxxxxx\#@$%$$#^". The filename, directory name or volume label syntax is incorrect" where xxxxxxx is the application installation directory. This error does not appear when I set file cache to false so I know it has to do with the temporary files FR tries to create, correct? How can I overcome this automatically I mean is there a way to know that FR will not be able to create the file cache?
Kindest regards
For some time now I noticed that in some Windows 7 systems when a user is trying to create a report he gets a strange error like "The following error(s) have occured: Canot open file "C:\Program Files (x86)\xxxxxxx\#@$%$$#^". The filename, directory name or volume label syntax is incorrect" where xxxxxxx is the application installation directory. This error does not appear when I set file cache to false so I know it has to do with the temporary files FR tries to create, correct? How can I overcome this automatically I mean is there a way to know that FR will not be able to create the file cache?
Kindest regards
Comments
Thank you for your reply but lots of my users work under strict users policy which they cannot change. Is there a way for me to internally test that permissions are ok and enable/disable this feature by code?
The program files folder has restricted access. So if you want to save temp files in Program Files folder you have to change NTFS settings, but why don't you use the TEMP folder for these temporary files instead.
You can get the path to the TEMP folder with the GetTempPath function.
And then set frxReEport1.EngineOptions.TempDir to the default TEMP folder.