Crystal Report Path Error

Posted by Shoyebaziz123 under ASP.NET on 3/25/2010 | Views : 2799 | Status : [Member] | Replies : 4
Hello All,


I have uploaded my project on server,in my app i have a folder name "Report" in that i have crystal reports...... while i am running report on server it shows an error of "Load Report Failed"..

i have set the path in crystal repoert viewer like this

Dim RptpathSaleDetail As String =Server.MapPath("Report\CrptSaleDetails.rpt")

i have also tries for this path

Dim RptpathSaleDetail As String = "~\Report\CrptSaleDetails.rpt"
but it shows UNKOWN.rpt...........

thanks in advance




Responses

Posted by: Vuyiswamb on: 3/25/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
put a breakpoints and add the try catch block and show the inner exception that will tel you in detail what is the problem. One more time try to full the full path of the report, meaning something like this "C:\MyProject\Report\CrptSaleDetails.rpt " and see what it does.

Thank you for posting at dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shoyebaziz123 on: 3/25/2010 [Member] Starter

Up
0
Down
Hi,
it is running on Local machine correctly but on server it shows the exception


Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/25/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Then that means you are using the wrong path on the server. Locate the full path of the report file and use it. the path that includes the C:\.. if it works that way then use the virtual path that uses the ~\ and make sure that the appropriate permission are assigned.

Thank you for posting at Dotnetfunda
[Administrator]

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 3/25/2010 [Member] Bronze

Up
0
Down
Hi check following articles


http://aspalliance.com/776_Creating_Dynamic_DataSets_for_Crystal_Reports_in_ASPNET_20

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response