Skip to Content
0
Former Member
May 28, 2008 at 07:59 AM

Failed to logon to CMS using Crystal Decision Enterprise Reference

38 Views

Post Author: fionafoo

CA Forum: Deployment

Dear All,

Appreciate your advice for the problem as stated below.

My workstation is installed with the Crystal Report XI Release 2. I have implemented the crystal report loaded from specified path as following:

MyReportDocument.Load(Server.MapPath("report.rpt"));

The crystal report is loaded correctly from the IIS server.

Then, I installed the Crystal Report Server XI on the same server where the IIS server resided. The report template is successfully published to the CMS.

There is an error message prompted u201CAccess denied. You cannot logon to an older version of the CMSu201D when the program trace until u201CenterpriseSessionMgr.Logonu201D block in u201CsetReportUsingPageServeru201D function as highlighted in the following source code.

using CrystalDecisions.Enterprise;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

using CrystalDecisions.ReportAppServer.ClientDoc;

using CrystalDecisions.Enterprise.Viewing;

using CrystalDecisions.ReportAppServer.Controllers;

u2026

protected void Page_Load(object sender, EventArgs e)

{

// Set up the viewer using the Page Server Report Factory

setReportUsingPageServer();

u2026

}

private void setReportUsingPageServer()

{

try

{

SessionMgr enterpriseSessionMgr = new SessionMgr();

EnterpriseSession m_enterpriseSession = enterpriseSessionMgr.Logon(

"Administrator",

"",

"servername",

"secEnterprise"

);

u2026.

}

Appreciate for any solution for this problem.

Thanks.

Regards,

Fiona