Skip to Content
0
Former Member
Apr 13, 2010 at 06:30 PM

Type 'sess' is not defined

73 Views

Hi

I'm working through the BOE .NET SDK Developers Guide, and having a problem with the section "To log on to the CMS". I'm using Visual Studio 2005.

In partcular, the following section causes a compilation error "Type 'sess' is not defined":

Try
Dim enterpriseSession As sess = sessionMgr.Logon(username, password, cms, secEnterprise)
End Try

I have referenced all the CrystalDecisions.Enterprise.* assemblies in my project, plus CrystalDecisions.ReportAppServer.ClientDoc, CrystalDecisions.ReportAppServer.Controllers, and CrystalDecisions.ReportSource, CrystalDecisions.Web.

But it's as if it can't find sessionMgr.Logon. I have checked that the DLL is present (C:\Program Files\Business Objects\common\4.0\managed\CrystalDecisions.Enterprise.Framework.dll) and it is. Do I need to register something somwhere?

Not sure what I'm doing wrong! Apologies for the basic question!

Any help greatly appreciated...