<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Can't authenticate using secWinAD protocol with .Net SDK in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834625#M271173</link>
    <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 21:15:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-03-08T21:15:34Z</dc:date>
    <item>
      <title>Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaq-p/834610</link>
      <description>&lt;P&gt;I'm attempting to authenticate using a .Net client.&lt;/P&gt;
  &lt;P&gt;The relevant code:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;ISessionMgr sessionMgr = CrystalEnterprise.GetSessionMgr();  
IEnterpriseSession enterpriseSession = sessionMgr.Logon([userName], [password], [server:6400], [authentication]);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If I use an account with &lt;EM&gt;secWinAD&lt;/EM&gt; credentials, I get an error on the Logon line that reads:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;System.ArgumentNullException: 'Value cannot be null.Parameter name: assembly'&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If I use an account with &lt;EM&gt;secEnterprise&lt;/EM&gt; credentials, however, the Logon method works.&lt;/P&gt;
  &lt;P&gt;I noticed that the &lt;EM&gt;secWinAD&lt;/EM&gt; protocol isn't installed:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;sessionMgr.InstalledAuthProgIds
{string[1]}
  [0]: "secEnterprise"&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I've added the &lt;EM&gt;CrystalDecisions.Enterprise.Auth.secWinAD&lt;/EM&gt; assembly to the project's reference.&lt;/P&gt;
  &lt;P&gt;When I use the RESTful SDK, I can access this server w/ the AD account.&lt;/P&gt;
  &lt;P&gt;What am I missing? Is there a way to programmatically add the &lt;EM&gt;secWinAD&lt;/EM&gt; auth?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaq-p/834610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-27T17:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834611#M271159</link>
      <description>&lt;P&gt;This is a challenge and there's not a lot of information available around this.  One option would be to log in to the RESTful web service to get the token and then use SessionManager.LogonToken() to connect the .NET SDK to the system.&lt;/P&gt;&lt;P&gt;Another option that I've used is to have the application get the user ID for the current session of the application and use SessionManager.LogonTrusted() to log the user in.  This is based on the assumption that if a user is logged in to the application, I know who the user is and I trust the user so I can just tell BOBJ that I trust the user.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834611#M271159</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2019-02-27T17:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834612#M271160</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;daniel.paulsen&lt;/SPAN&gt; any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834612#M271160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-27T19:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834613#M271161</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Shawn&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 20:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834613#M271161</guid>
      <dc:creator>former_member203619</dc:creator>
      <dc:date>2019-03-05T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834614#M271162</link>
      <description>&lt;P&gt;I appear to have the same version:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/298284-screen-shot-2019-03-05-at-35542-pm.png" /&gt;&lt;/P&gt;&lt;P&gt;If it makes a difference, I can access the CMC and Launchpad using AD credentials.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 21:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834614#M271162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-05T21:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834615#M271163</link>
      <description>&lt;P&gt;One thing that can cause strange behavior (everything works but .NET) is a mixture of assemblies in the Bin folder of the application.&lt;/P&gt;&lt;P&gt;This can happen if you've had "Copy Local : True" at any point and made changes to the application or runtime versions.&lt;/P&gt;&lt;P&gt;Old and incorrect versions can be left in the Bin folder after setting "Copy Local : False"&lt;/P&gt;&lt;P&gt;Try checking the application's Bin folder and remove any CrystalDecisions assemblies.&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834615#M271163</guid>
      <dc:creator>daniel_paulsen</dc:creator>
      <dc:date>2019-03-06T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834616#M271164</link>
      <description>&lt;P&gt;I removed this assembly:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301335-screen-shot-2019-03-07-at-71029-am.png" /&gt;&lt;/P&gt;&lt;P&gt;I built the project and noticed a number of CrystalDecisions.* assemblies had been copied to the \bin directory.  I ensured that all BusinessObjects.* and CrystalDecision.* assemblies were marked Copy Local = False and Embed Interop Type = False, built the project, and ensured that the \bin directory was free of assembilies of these two families.&lt;/P&gt;&lt;P&gt;When I hit the SessionMgr.Logon() line, using secWinAD, I still get this error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301336-screen-shot-2019-03-07-at-72615-am.png" /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get more-granular information from the SDKException?&lt;/P&gt;&lt;P&gt;What now?  Is there a way to add the missing auth (secWinAD) in code?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834616#M271164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-07T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834617#M271165</link>
      <description>&lt;P&gt;The error still appears to be mixed runtime.   If you're working with Crystal Reports, then I cannnot think of any reason you should have any reference to BusinessObjects.Enterprise.* dlls.  remove those from your project.&lt;/P&gt;&lt;P&gt;Ensure the path to each of your assemblies is consistent with the CPU you are building for (x86 or x64)&lt;/P&gt;&lt;P&gt;in the screenshot from your earlier post, you are referencing the Framework dll in the \win32_x86\ folder.  Make sure none are pointing to the \win64_x64\ folder path.&lt;/P&gt;&lt;P&gt;We install assemblies to the "\SAP BusinessObjects Enterprise XI4.0\win32_x86\dotnet\ipoint\" folder, but they should also be in the GAC (c:\windows\assembly).  The GAC is where an application should try and load and assembly first (providing BIN folder is cleaned up).   If all of the above ideas fail, then possibly the GAC is out-of date. Verify the version of the dll in the GAC with the version in the \ipoint\ folder. by rigth-clicking on the assembly and selecting properties.  You are interested in the file version(14.2.x.yyy) not the assembly version (14.0.2000.0).  The file version should match the Service Pack you have installed. 14.2.x where 'x' is the SP number.&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834617#M271165</guid>
      <dc:creator>daniel_paulsen</dc:creator>
      <dc:date>2019-03-07T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834618#M271166</link>
      <description>&lt;P&gt;I'm using Window 7 (which is 32-bit).  The build targets x86.  The assemblies are in the GAC (c:\windows\assemby).&lt;/P&gt;&lt;P&gt;File versions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CrystalDecisions.Enterprise.Framework - 14.2.5.2618&lt;/LI&gt;&lt;LI&gt;CrystalDecisions.Enterprise.InfoStore - 14.2.5.2618&lt;/LI&gt;&lt;LI&gt;CrystalDecisions.ReportAppServer.ClientDoc - 14.2.5.2618&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are there 64-bit assemblies?&lt;/LI&gt;&lt;LI&gt;How do I correctly reference the assemblies in the GAC, rather than the ones in \ipoint?  I get this error:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301354-screen-shot-2019-03-07-at-23146-pm.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 20:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834618#M271166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-07T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834619#M271167</link>
      <description>&lt;P&gt;one assembly missing from your File Versions list is&lt;/P&gt;&lt;P&gt;CrystalDecisions.Enterprise.Pluginmanager&lt;/P&gt;&lt;P&gt;try adding that as well.  If it fails, then remove all of the assemblies, re-add and ensure none were copied local.&lt;/P&gt;&lt;P&gt;Since your OS is 32bit, you won't have the 64bit runtime installed.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 22:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834619#M271167</guid>
      <dc:creator>daniel_paulsen</dc:creator>
      <dc:date>2019-03-07T22:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834620#M271168</link>
      <description>&lt;P&gt;I added these assemblies (from the \ipoint directory):&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301374-screen-shot-2019-03-07-at-65957-pm.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm getting errors:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301375-screen-shot-2019-03-07-at-65848-pm.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834620#M271168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-08T01:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834621#M271169</link>
      <description>&lt;P&gt;More errors:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301377-screen-shot-2019-03-07-at-65852-pm.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301378-screen-shot-2019-03-07-at-65939-pm.png" /&gt;&lt;/P&gt;&lt;P&gt;Which assemblies am I still missing?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834621#M271169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-08T01:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834622#M271170</link>
      <description>&lt;P&gt;Your references are fine.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for the first error, CrystalEnterprise is not a namespace.&lt;/LI&gt;&lt;LI&gt;for the second: SDKException comes from BusinessObjects.Enterprise.Exception&lt;/LI&gt;&lt;LI&gt;for the third, I'm not sure unless your enterpriseSession object isn't declared as a CrystalDecisions.Enterprise.EnterpriseSession&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834622#M271170</guid>
      <dc:creator>daniel_paulsen</dc:creator>
      <dc:date>2019-03-08T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834623#M271171</link>
      <description>&lt;P&gt;What is the right way to get the SessionMgr?&lt;/P&gt;&lt;P&gt;You said that I didn't need any BusinessObjects.* assemblies in my project.&lt;/P&gt;&lt;P&gt;Is there a sample application that demonstrates this?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834623#M271171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-08T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834624#M271172</link>
      <description>&lt;P&gt;I solved this problem, which I think was related to incompatible assemblies (as Shawn and Dan mentioned). 
&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;using CrystalDecisions.Enterprise;

try
{
  // create a new instance, rather than use singleton (which was from another assembly)
  SessionMgr sessionMgr = new SessionMgr();

  // use IS* interface, rather than the I* interface (which was from another assembly)
  // secWinAD works as expected
  ISEnterpriseSession enterpriseSession = sessionMgr.Logon("account", "password", "cmsName", "secWinAD");

  return enterpriseSession.LogonTokenMgr.DefaultToken;
}
// SDKException wasn't necessary
catch (Exception e)
{
  Debug.Print(e.Message);
  throw;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 21:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834624#M271172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-08T21:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't authenticate using secWinAD protocol with .Net SDK</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834625#M271173</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 21:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-authenticate-using-secwinad-protocol-with-net-sdk/qaa-p/834625#M271173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-08T21:15:34Z</dc:date>
    </item>
  </channel>
</rss>

