on 08-29-2008 11:32 PM
Hey all!
I received the follwoing error when exporting a report into a pdf file using the ExportToStream method:
Could not find file "C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_e269c3d0-e775-4351-b2ea-09507859a79a.tmp".
I am using VS 2003 and CR 9.1.5, and I didn't have any problems with this report until I enlarged the header field for a column. After this error occurred, I reverted back to the original report, but it still threw the error. I then restarted IIS, rebuilt the application, and then ran the report again. Still no luck.
Any ideas on what is causing this problem? Is this a version issue?
(I have four other reports that are still working fine, it just seems to be this one report)
Hi Jacob,
As you have mentioned that you have made some changes in report first of all update database connection.
To update database connection:
Set Datasource location->Select database
and update it.
Secondly,Check that the report exist in the same path location or not and delete all temp files from temp folder and try to run your application.
Hope this helps,
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I finally found out what was cauing this bug. It seems that a change was made to the result set that was feeding this report. We had changed the formula we used in one of the columns in the select statement, and we weren't using column aliasing, so it caused Crystal Reports to choke and die.
(ie: we changed "select (column1 + 1) from table" to "select (column2 - 1) from table")
So if you happen to ever get a "Could not load file error" when generating a pdf report from Crystal Reports 9.1.5, most likely you should verify your database information is correct. (Using the "Verify Database" command in VS2003 is quite heplful with this)
Thanks for the link to Filemon, Ted Ueda! It helped narrow down that this problem wasn't with access permissions or with Crystals file generation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the full dump of the error message:
Exception=System.IO.FileNotFoundException
Message=Could not find file "C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_d03e5522-a635-47c0-b649-a238063b0223.tmp".
FileName=C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_d03e5522-a635-47c0-b649-a238063b0223.tmp
TargetSite=Void WinIOError(Int32, System.String)
StackTrace= at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
at FixedAssets.FAPageBase.InvokeCrystalReport(String ReportName) in c:\dev\source\comptrollers\fixedassets\dev\web\fapagebase.aspx.cs:line 588
at FixedAssets.Reports.CreateAssetDisposalsReport.btnRunReport_Click(Object sender, EventArgs e) in C:\dev\source\comptrollers\FixedAssets\Dev\web\Reports\AssetDisposalsReport.aspx.cs:line 70
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
Source=mscorlib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.