on 10-22-2009 6:45 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.