Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 20, 2012 12:31 AM by z080236
Member
8 Points
88 Posts
Oct 18, 2012 03:52 AM|LINK
I copied the packageTmp over to the inetpub/wwwroot, then added a website and included it as my path
installed the crystal report runtime,CRRuntime_32bit_13_0_4
but still did not work
i also have crystalreportviewers13 folder in wwwroot/aspnet _client/systemweb/4_0_30319
Oct 18, 2012 02:29 PM|LINK
this is the error I encountered when I go to the page with crystal report
may i know where the path is defined? This problem occurs when I deploy my application in IIS.
Exception Details: System.Runtime.InteropServices.COMException: Invalid file name.
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): Invalid file name.] 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: Load report failed.] CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +333 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(DataTable dataTable) +66 Project11.Reportxx.ShowReport() +878 Project11.Reportxx.InitializeReport() +1216 Project11.Reportxx.Button1_Click(Object sender, EventArgs e) +578 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.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
Oct 18, 2012 03:19 PM|LINK
This is the .cs code behind the .aspx code,for reportxx.rpt
m_report1 = new reportxx(); CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
DataTable dt = data.GetReport(); reportxx.SetDataSource(dt);
CrystalReportViewer1.ReportSource = m_reportxx;
I tried this and it worked while I debug it in the visual studio environment
Oct 20, 2012 12:31 AM|LINK
solved
enabled permissions in C:/windows/temp folder to read for IIS_USRS
and followed this:
http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/ef56f72b-7ede-47d8-ba9e-9e63b9ac0203
z080236
Member
8 Points
88 Posts
Crystal report fails to show when application is deployed in IIS
Oct 18, 2012 03:52 AM|LINK
I copied the packageTmp over to the inetpub/wwwroot, then added a website and included it as my path
installed the crystal report runtime,CRRuntime_32bit_13_0_4
but still did not work
i also have crystalreportviewers13 folder in wwwroot/aspnet _client/systemweb/4_0_30319
z080236
Member
8 Points
88 Posts
Re: Crystal report fails to show when application is deployed in IIS
Oct 18, 2012 02:29 PM|LINK
this is the error I encountered when I go to the page with crystal report
may i know where the path is defined? This problem occurs when I deploy my application in IIS.
Exception Details: System.Runtime.InteropServices.COMException: Invalid file name.
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): Invalid file name.]
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: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +333
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(DataTable dataTable) +66
Project11.Reportxx.ShowReport() +878
Project11.Reportxx.InitializeReport() +1216
Project11.Reportxx.Button1_Click(Object sender, EventArgs e) +578
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.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
z080236
Member
8 Points
88 Posts
Re: Crystal report fails to show when application is deployed in IIS
Oct 18, 2012 03:19 PM|LINK
This is the .cs code behind the .aspx code,for reportxx.rpt
m_report1 = new reportxx();
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
DataTable dt = data.GetReport();
reportxx.SetDataSource(dt);
CrystalReportViewer1.ReportSource = m_reportxx;
I tried this and it worked while I debug it in the visual studio environment
z080236
Member
8 Points
88 Posts
Re: Crystal report fails to show when application is deployed in IIS
Oct 20, 2012 12:31 AM|LINK
solved
enabled permissions in C:/windows/temp folder to read for IIS_USRS
and followed this:
http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/ef56f72b-7ede-47d8-ba9e-9e63b9ac0203