I am trying to open a crystal report in Visual Studio 2008. When I debug in it my local server, I see the reports. But when I publish it to test server, it gives me the error the system cannot find the path specified.
This is my code
Aspx :
<div><CR:CrystalReportViewer ID="CrystalReportViewer" runat="server"
AutoDataBind="True" Height="50px" meta:resourcekey="CrystalReportViewerResource1" Width="350px" /></div>
.cs :
namespace TestDoc
{
public partial class Reports : System.Web.UI.Page
{
private ReportDocument DocPersonnelReport;
protected void Page_Load(object sender, EventArgs e)
{
}
private void ConfigureCrystalReports()
{
DocPersonnelReport = new ReportDocument();
DocPersonnelReport.Load(@"Y:\Crystal Reports\Test\TestStatus.rpt");
CrystalReportViewer.ReportSource = DocPersonnelReport;
}
private void Page_Init(Object sender, EventArgs e)
{
ConfigureCrystalReports();
}
}
}
I would appreciate any help.
Thanks in advance!