Hello,
I´ve been searching for these problem for a while with no luck. I've already try many things.
The thing is that I'm not able to make work any report when deploying (Windows Server 2012). Everything works fine when I try on my local machine.
I have Visual Studio 2012 and I've installed CRforVS_13_0_5.
This is my code:
ReportDocument myCrystalReport;
myCrystalReport = new ReportDocument();
myCrystalReport.Load(Server.MapPath("~/Reports/report2.rpt"));
CrystalReportViewer1.ReportSource = myCrystalReport;
CrystalReportViewer1.RefreshReport();
I've pasted the error below:
Server Error in '/' Application.
Unknown error 0x80040200
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: Unknown error 0x80040200
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 (0x80004005): Unknown error 0x80040200] 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: No se ha podido cargar el informe.] 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 MMN.Reports.prueba1.Page_Load(Object sender, EventArgs e) +97 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 |
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
I'd really appreciate any help.
Many thanks.