Skip to Content
0
Former Member
Sep 08, 2007 at 12:57 AM

File Error

116 Views

Hello, I have a Visual Studio.NET 2005 application which has been upgraded from Visual Studio.NET 2003. It is a VB.NET application and my problem is that it appears to be some temporary .rpt files written to the users local settings\temp directory. These temporary filenames have the following structure: Name of the report + a GUID + .rpt. I believe they are created by the bundled version of Crystal Reports that comes with Visual Studio.NET 2005 when a report is run and displayed in the Crystal Reports viewer.

I have since changed the openreportmethod to be by default, but this has seemed to had no effect. Anyway, these temporary files are not being deleted from the logged in users temp directory and when the same report is run the second through nth times, an error is thrown stating interop.com exception file error and gives the name of the report in the temp directory. This is how I determined what the problem was. I have done a lot of research on the Business Objects website and found a hotfix that is supposed to resolve this, but it is for Crystal Reports version 10. When I run the setup.exe from the hotfix, I get an error message to the effect that it cannot update a key in the registry for patch - 199. I am assuming this is because the hotfix is not for the version of Crystal Reports that comes bundled with VS.NET 2005?

The other odd thing is that if I run the application in debug mode these temporary files are cleaned up. It is only when I run the application in a production mode that the temp .rpt files do not get cleaned up.

I would appreciate any help anybody is able to provide with this as I cannot figure out what else to do.

Thanks in advance!

Tim