Using Novell.Directory.Ldap in Mono (For Android and Touch)

ldap, mono, novell, xamarin.android, xamarin.ios

Solution

The problem is solved.

Instead of using the dll from Novell, I downloaded all the source files of the Novell LDAP library and put them into a new library project. Then I made a reference to that library from my own Mono project.

While compiling my project and the library project, I received some errors from the library project. After solving these errors manually, it works fine for both (MonoTouch and Mono for Android).

Problem

I want to use the Novell.Directory.Ldap library in a MonoTouch and Mono For Android project. http://www.novell.com/coolsolutions/feature/11204.html When I compile my project in iOS simulator modus, It compiles without errors and runs correctly (in the iOS simulator). When I compile my project in iOS device modus (to test the app with a physical device), I get this error: ``` Error MT2002: Failed to resolve "System.Void System.Security.Cryptography.RNGCryptoServiceProvider::.ctor(System.Byte[])" reference from "mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" (MT2002) (MyProject) ``` How could I solve this problem? I can't find a solution. Should this library work for MonoTouch and Mono For Android? Are there better LDAP solutions for Mono? UPDATE: I just tested it with Mono For Android. This works fine.

Original source