Quantcast
Viewing all articles
Browse latest Browse all 3636

File name and file path of report are blank


I have a .net application created in Visual Studio 2010.  There is a section of the app where users should be able to open various Crystal reports but when I try to open them in Visual Studio on my development machine I get the error, "Invalid file name".  When I run the app in debug mode and view the report object in the watch window many of the properties of the report have the value, "Load report failed" and the Report Source property has the value of, "The report filename was empty".  The FileName and FilePath properties do have blank values.  The m_sTempFileName property has the value of "C:\Windows\TEMP\temp_ea6b290b-33ce-4996-a0c5-5c31c62ec6fc.rpt" and the TempFilename property has the value of "C:\Windows\TEMP\temp_415d233f-3e4f-4830-8230-af4757207519.rpt".  Both of those files exist in the Temp folder and they contain the template of the report I'm trying to open.  The account the app is running under has Full Control permissions on the Temp folder.  I have another .net app on the same machine that uses the same mechanism to open reports and it works fine.  I also deployed the app to a production server and the reports also open there.

 

Any suggestions would be greatly appreciated.


Viewing all articles
Browse latest Browse all 3636

Trending Articles