Gurjeet Singh

Gurjeet Singh

  • NA
  • 90
  • 94.9k

Response.Redirect

Aug 29 2013 6:31 AM
Hi All,


I have uploaded my site on shared web server through filezilla. All pages working fine when i trying to open(load)  page i get an error.

[COMException (0x800001fb): Invalid file name.] CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +90 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +259 [CrystalReportsException: Load report failed.] CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +322 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +851 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +78 DawarBilling.testing.Page_Load(Object sender, EventArgs e) in D:\Desktop\Franchise\DawarBilling\DawarBilling\testing.aspx.cs:23 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772



I have a doubt that y it's taking  my local system path instead of server path even i used
  protected void Button1_Click(object sender, EventArgs e)
  {
  Response.Redirect("~/testing.aspx");
  }


 

Answers (17)