Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System.Runtime.InteropServices.COMException: Invalid file name. 1

Status
Not open for further replies.

bernie321

Programmer
Jan 7, 2004
477
GB
Hi

We are attempting to deploy some CR XI reports on our intranet in ASPX pages using VB .NET.

We currently have a problem that when we debug the page we receive the error:

System.Runtime.InteropServices.COMException: Invalid file name.

Its driving me mad, i cannot seem to find a solution.

Any help would be much appreciated
Thanks
B
 
Hi

I am having this exact same problem with my asp.net page.

The really anoying thing for me is it works on my development server and not on my deployment server. Both servers are running the same version of windows and have the same options installed. I am hoping that in the time since you posted this you might have come accross a solution.

Also I have the crystal reports portion packaged in a dll and i can use a simple application with the exact same paramaters using the exact same function call and it will work. It is only when i go to create the report from asp.net that the problem occurs.

In case this is helpfull to any one here is the stack trace that it gives me.

[COMException (0x800001fb): Invalid file name.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +72
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +218

[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +270
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +765
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod) +53
NEWReportDLL.Crystal.BuildReport(String reportName, String exportFile, String db, String svr, String user, String pass, String rptparams) in C:\Documents and Settings\kurt\My Documents\Visual Studio Projects\NEWReportDLL\Crystal.vb:44
ASP.index_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in D:\Inetpub\BloodInterp\index.aspx:276
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1926


Any help would be greatly appreciated.

Thank you in advance
 
Hi

My problem was caused by the ASP .NET worker process not having access to the windows temp directory.

Try giving everyone full access to the windows temp directory.

Hope it helps

Thanks
B
 
Thank you very much for your prompt reply. That solved my problem. When i first got this problem i thought of permissions, but i added permissions to everywhere i thought it would need them and it still wasn't working. I would have never thought of adding to the windows temp directory for this one.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top