Click here to Skip to main content
15,898,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have build a web project with a crystal report. when i run that project using visual studio 2008 it run properly..

But when I deploy it on IIS and run it using IP address it gives following Error..
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The system cannot find the path specified. 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 Default2.TreeView1_SelectedNodeChanged(Object sender, EventArgs e) in c:\Inetpub\wwwroot\erp_web\Default2.aspx.cs:line 154

code on line 154 is Default2.aspx.cs
rd.Load(Server.MapPath("~\\CrPO.rpt"));

What is the problem i can't understand. I tried numbers of path for crystal report
and also full permission to access drive c:..

What is solution?? Please suggest me.

With regard
Rikin
Posted
Updated 30-Jan-17 7:23am
v2

The system cannot find the path specified.
This simply means that the path is incorrect that you are using to refer the path.

Either, use a absolute path directly OR use a correct relative path. You would need to make sure that the path is correct such that file is found and used.

For relative path, you can try this Tip and resolve the path correctly before setting the source of the file: Resolving Paths in a Multi-Folder WebSite[^]
 
Share this answer
 
Comments
thatraja 4-Jun-12 14:53pm    
Possible case, 5!

BTW Glad to see you here again after long time
Sandeep Mewara 5-Jun-12 1:14am    
Thanks. :)

Yeah. Long time.
 
Share this answer
 
Comments
Sandeep Mewara 5-Jun-12 1:14am    
Good reference. 5!
hey i Got A solution for it..
i just remove "" identity impersonate="true" " tag from web.config and it working properly..

thanx all to response..
 
Share this answer
 

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