[Mono-list] Re: DirectoryEntry call works on LINUX but not
Windows 2000
Adam Tauno Williams
adam at morrison-ind.com
Fri Mar 10 09:20:29 EST 2006
On Thu, 2006-03-09 at 09:18 -0500, Adam Tauno Williams wrote:
> On Thu, 2006-03-09 at 08:47 +0100, Robert Jordan wrote:
> > Adam Tauno Williams wrote:
> > > I have a small application built on Mono 1.1.13.4-0.novell (SuSe 10.0) that
> > > works well on LINUX but on a Windows 2000 machine with .NET 1.1 the
> > > DirectoryServices call -
> > > if(eula.Properties.Contains("morrisonpreferencevalue"))
> > > - where eula is a DirectoryEntry.
> > > ... any pointers on what the cause of this might be?
> > You forgot to attach the [STAThread] attribute to the
> > main entry point of the application.
> I added the "[STAThread]" to the entry point -
> [STAThread]
> public static void Main(string[] argv)
> {
> Application.Run(new EULA(argv));
> }
> - but it still fails at the same point with the same error message -
I suspect it has to do with the value is type
1.3.6.1.4.1.1466.115.121.1.40 (octet-string), as very similar code
works with 1.3.6.1.4.1.1466.115.121.1.15 (UTF-8 string) values. Does
directory services on .NET not support octet-string values?
> Unhandled Exception: System.Runtime.InteropServices.COMException
> (0x80005000): Unknown error (0x80005000)
> at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
> at System.DirectoryServices.DirectoryEntry.Bind()
> at System.DirectoryServices.DirectoryEntry.get_AdsObject()
> at System.DirectoryServices.PropertyCollection.Contains(String
> propertyName)
> at MorrisonIndustries.EULAPopUp.EULAForm.LoadEULA()
> at MorrisonIndustries.EULAPopUp.EULAForm..ctor(String[] argv)
> at MorrisonIndustries.EULAPopUp.EULAForm.Main(String[] argv)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060310/f734f391/attachment.bin
More information about the Mono-list
mailing list