Skip to Content
0
Former Member
Feb 08, 2011 at 11:05 PM

How to deploy a web application with CR 13

40 Views

Hi,

I've got a web application under VS2010. All is working fine on the dev computer (as usual). Now I need to deploy this application.

I've installed on the destination computer the CR redistribute package. I've used the "Build deploy package" in VS2010 to distrib my web apps.

It runs well on the target computer but when I try to run a report I got the following error code (sorry some text are in french) :

Server Error in '/WebNegoce_deploy' Application.
--------------------------------------------------------------------------------

Nom de fichier non valide. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: Nom de fichier non valide.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 
[COMException (0x800001fb): Nom de fichier non valide.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +270

[CrystalReportsException: Echec du chargement du rapport]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +332
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +877
   CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1183
   CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +113
   CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) +53
   CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet) +66
   WebNegoce.libs.imprime_Semaine(DevisFacHeader& objDevis, DataAccess& ObjConn, String& PrintDest, String& computerName) in D:\Negoce.2010\WebNegoce\libs.vb:31
   WebNegoce.TypePrint.Traitement(String Sortie) in D:\Negoce.2010\WebNegoce\TypePrint.aspx.vb:46
   WebNegoce.TypePrint.ImageButton2_Click(Object sender, ImageClickEventArgs e) in D:\Negoce.2010\WebNegoce\TypePrint.aspx.vb:39
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

What should I add in VS2010 to build my deploy package ?

Thx in advance

Sybux