Version 1.2 CS0234 Error

Apr 28, 2010 at 9:18 PM



I have run through the setup instructions a few times now and I am still getting an error when I try to use the redirector.

I have pasted the compiler error.

c:\Inetpub\wwwroot\SSO\App_Code\LDAP.cs(10,32): error CS0234: The type or namespace name 'Protocols' does not exist in the namespace 'System.DirectoryServices' (are you missing an assembly reference?)

Im not a c# developer but it seems as though the code is looking for some packages that are not installed? 

Perhaps someone can clarify or assist me in moving past this point, Thanks in advance!

Apr 29, 2010 at 4:39 AM

There are a couple of fixes for this.  We need to update the documentation to reflect the recent changes.

Option A) Add the reference to the web.config...

  <compilation debug="true">
    <add assembly="System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.DirectoryServices.Protocols, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

Option B) Remove the LDAP.cs file from the project.  This will cause Public\Redirect.aspx to then have a compile error until you search for LDAP in the Redirect.aspx.cs file and comment/remove the line of code.

We also plan to have two download zip's, one with LDAP and one without.  The LDAP class enables lookups in the LDAP Directory to find a user's email address.

Apr 29, 2010 at 4:38 PM

Hi LuminisLive,

Thanks for your prompt reply, it seems that the application compiles after adding the appropraite <add assembly> tags to the web.config.  I will test further today with our Luminis Administrator.

Thanks again!