Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can You Please Solve the error:-
HTML
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Invalid file name. at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at Crystal_Report_CommonReport.Show_Data()


From last 1 week I am just searching from net and other but till now not get any solution. If any solution with you then please kindly send me.........

This error coming at the time of load the crystal report. I have written:-
C#
ReportDocument boReportDocument = new ReportDocument();
boReportDocument.Load(Server.MapPath("RptCustomerDeposits.rpt"));

To load the report . and it is working in my local machine. But when I put it in remotr site the above error is coming.

Please any solution then send me............
Posted
Updated 6-Oct-12 3:11am
v2

 
Share this answer
 
This post[^] might help you.
 
Share this answer
 
Debug it.
Check what value you are getting for
C#
Server.MapPath("RptCustomerDeposits.rpt")
and then check that teh file is actually there. I suspect it works o0n your local machine because the file exists, but it may be that you are expecting a client file on the server, which is not going to work. The first thing you need to know is: "where is it looking?" and "Is the file actually there? If not, where is it?"
 
Share this answer
 
Does any one have any solution for this problem????
I am facing a similar problem. tried almost many solutions. Nothings seems to work out.

If possible please provide me with a suitable solution.
 
Share this answer
 
Comments
Deepu S Nair 17-Dec-14 7:32am    
Don't post your question as a solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900