views:

780

answers:

2

Occasionally while attempting to save a Crystal Report that I'm working on in VS2008, a dialog titled "File Save Failed" pops up saying "The document could not be saved in C:\Users\Phillip\AppData\Local\Temp{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.rpt. It has been saved in C:\Users\Phillip\AppData\Local\Temp\~zzz{YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY}.tmp."

If I OK the dialog, I get a "Save File As" dialog. If I specify the correct location of the report file, I'm asked if I want to replace the existing file. If I say "Yes", I get an error message saying "The operation could not be completed. The system cannot find the file specified." Even if I specify a completely different filename, in a different folder (e.g. C:/test.rpt) I get the same "operation could not be completed" error.

Sometimes if I wait a moment, then try to save again, it works fine. More frequently, however, I keep getting the "Save File As" dialog. My only option then is to close the report and discard my changes.

This is an intermittent problem - much of the time, saving the report works just fine. Any ideas?

A: 

sounds like a job for process moniter. you should be able use process moniter to see what's really hapening and why.

http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

Or you could install VS2008 sp1 and cross your fingers. (I'd do both)

Booji Boy
+1  A: 

Copernic Desktop Search sometimes locks files so that they can't be written. Closing the program resolves the problem. Perhaps the same problem occurs with other search engines too.

Kaniu
Took me a while, but I've just been able to confirm that this is exactly what was causing my problem. Thanks very much.
Phillip Wells