I'm attempting to authenticate using a .Net client.
The relevant code:
ISessionMgr sessionMgr = CrystalEnterprise.GetSessionMgr();
IEnterpriseSession enterpriseSession = sessionMgr.Logon([userName], [password], [server:6400], [authentication]);
If I use an account with secWinAD credentials, I get an error on the Logon line that reads:
System.ArgumentNullException: 'Value cannot be null.Parameter name: assembly'
If I use an account with secEnterprise credentials, however, the Logon method works.
I noticed that the secWinAD protocol isn't installed:
sessionMgr.InstalledAuthProgIds
{string[1]}
[0]: "secEnterprise"
I've added the CrystalDecisions.Enterprise.Auth.secWinAD assembly to the project's reference.
When I use the RESTful SDK, I can access this server w/ the AD account.
What am I missing? Is there a way to programmatically add the secWinAD auth?
Request clarification before answering.
When I check the InstalledAuthProgId's on my test system, I see 8 members. It looks like this list comes from the CrystalDecisions.Enterprise.Framework assembly. I suspect that you have an old or bad version of that assembly in your application. Can you please check the properties of that assembly in your app and verify the version. Mine is Version 14.0.20000, Runtime Version v2.0.50727.
Shawn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.