[Mono-dev] System.DirectoryServices from linux
Hello I am trying to create a mono program that can control an active directory from a Linux server System.DirectoryServices doesn't seam to work the same way as it does on a windows client. I can get the following code to run on a windows 7 and xp box but I cannot get it to work on ubuntu 10.10 or 11.04 Anyhelp on this would be great thanks. gmcs /pkg:dotnet /r:System.DirectoryServices Main.cs Main.cs(4,32): error CS0234: The type or namespace name `ActiveDirectory' does not exist in the namespace `System.DirectoryServices'. Are you missing an assembly reference? Main.cs(4,32): error CS0234: The type or namespace name `ActiveDirectory' does not exist in the namespace `System.DirectoryServices'. Are you missing an assembly reference? Compilation failed: 2 error(s), 0 warnings mono -V Mono JIT compiler version 2.6.7 (Debian 2.6.7-5ubuntu3) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC:Included Boehm (with typed GC and Parallel Mark) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none cat /usr/lib/pkgconfig/dotnet.pc Name: Standard libraries in a .NET setup Description: References all the standard .NET libraries for compilation Version: 2.6.7 Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll I can compile the code on a windows machine and it works fine when I scp it to ubuntu 11.04 and run I get this error: mono Test.exe hello world Unhandled Exception: LdapException: (32) No Such Object LdapException: Server Message: 208D: NameErr: DSID-031001E5, problem 2001 (NO_OBJECT), data 0, best match of: '' I get htis problem mono Test.exe hello world Unhandled Exception: LdapException: (32) No Such Object LdapException: Server Message: 208D: NameErr: DSID-031001E5, problem 2001 (NO_OBJECT), data 0, best match of: '' code Console.WriteLine(hello world); DirectoryEntry entry = new DirectoryEntry(LDAP://, x...@.com, bestpasswordever); string userName = ExtractUserName(Jshmo); DirectorySearcher search2 = new DirectorySearcher(entry); search2.Filter = String.Format((SAMAccountName={0}), userName); search2.PropertiesToLoad.Add(cn); SearchResult result = search2.FindOne(); Console.WriteLine(result.Path); ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Pull requests on bug fixes
Hi, lastly I posted two pull requests corresponding to bugs founded in bugzilla. One of these has even already be closed, however nobody showed interesting in pulling my changes or rejecting them. Could anyone with privileges check it out? One can find requests here: https://github.com/mono/mono/pull/92 https://github.com/mono/mono/pull/93 -- Regards, Konrad ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Cross-Appdomain remoting
I'm seeing strange behavior on our device - AppDomain A has launched AppDomain B, and wired the DomainUnloaded event. I'm seeing that RemotingServices.DisposeIdentity is being called after 5 minutes, and then when AppDomain B unloads itself and the unload event is fired, I get this error: Unhandled Exception: System.Runtime.Remoting.RemotingException: Server for uri '6c9364e7_bf92_4f6d_950d_9cfc5c9a372d/b4c91032_2.rem' not found Server stack trace: at System.Runtime.Remoting.Proxies.RealProxy.GetAppDomainTarget () [0x0] in filename unknown:0 at (wrapper xdomain-dispatch) Manager.Shells.WAppServer:HandleDomainUnload (object,byte[],byte[],string) I *think* that the problem is that the domain unload can't find A. I *think* that the object that can't be found is supposed to be automatically recreated - am I right? If that's true, I'm guessing that this can't be done when an AppDomain is being unload... Is that true? Where should I start looking to solve this? Can someone provide a clearer explanation of how this all works? - Kipp ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Cross-Appdomain remoting
Hi, On 05.05.2011 22:11, Michael Mudge wrote: I'm seeing strange behavior on our device - AppDomain A has launched AppDomain B, and wired the DomainUnloaded event. I'm seeing that RemotingServices.DisposeIdentity is being called after 5 minutes, and then when AppDomain B unloads itself and the unload event is fired, I get this error: Unhandled Exception: System.Runtime.Remoting.RemotingException: Server for uri '6c9364e7_bf92_4f6d_950d_9cfc5c9a372d/b4c91032_2.rem' not found Server stack trace: at System.Runtime.Remoting.Proxies.RealProxy.GetAppDomainTarget () [0x0] infilename unknown:0 at (wrapper xdomain-dispatch) Manager.Shells.WAppServer:HandleDomainUnload (object,byte[],byte[],string) I *think* that the problem is that the domain unload can't find A. I *think* that the object that can't be found is supposed to be automatically recreated - am I right? If that's true, I'm guessing The proxy won't be recreated. If you want to prevent it from being disposed, you should either change its lifetime (via app.config's system.runtime.remoting element) or call/poll a method periodically. that this can't be done when an AppDomain is being unload... Is that true? Where should I start looking to solve this? Can someone provide a clearer explanation of how this all works? Please explain first (preferably with code) what you're trying to achieve. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list