cancel
Showing results for 
Search instead for 
Did you mean: 

VS Development Server error

Former Member
0 Kudos

Hi all,

I am trying to list and export as xls in a aspx page.

BO Server: Edge 3.1

.NET 3.5

It works fine when the project is using "Local IIS Server", but when i change that to "Use Visual Studio Development Server" i get an error while getting ReportEngines service from EnterpriseSession.

Code from the Page_Load:


SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.Logon("user name", "password", "server", "secEnterprise");
ReportEngines reportEngines = null;
UserInfo userInfo = null;
InfoStore iStore = null;

iStore = (InfoStore)enterpriseSession.GetService("InfoStore");
userInfo = enterpriseSession.UserInfo;

if (enterpriseSession != null)
{
      reportEngines = (BusinessObjects.ReportEngine.ReportEngines)Session["ReportEngines"];
      if (reportEngines == null)
      {
              rEngines = (ReportEngines)(enterpriseSession.GetService("ReportEngines")).Interface;
      }
}

enterpriseSession.GetService("ReportEngines") line throws exception with this message:

Message: "Cannot create object CrystalEnterprise.ReportEngines."

ParamName: null

Any ideas why i am getting this exception.

PS: when i switch back to IIS there isn't any exceptions.

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

It's not clear what's throwing this exception - there may be several causes.

But the first thing I would check is OS permissions. I'm assuming on IIS it's using a different OS identity than running on Visual Studio.

Sincerely,

Ted Ueda

Answers (0)