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)
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
