I have found the problem was not specifying the "AuthenticationTypes". It needs to be set to "ServerBind" for LDAP provider access.
Thanks You Simon Powell Dresdner Kleinwort Wasserstein Core Engineering * Internal: x59263 * External: 020 7475 9263 * Internet [EMAIL PROTECTED] -----Original Message----- From: Shawn Wildermuth [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 16:17 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] DirectoryServices COMException Since it is throwing a COMException, you can probably figure out what's happening by getting the HRESULT (ErrorCode) from the COMException. They lookup the ADSI error in MSDN based on that HRESULT. HTH Thanks, Shawn Wildermuth [EMAIL PROTECTED] ====================================== Author of "Pragmatic ADO.NET" http://adoguy.com/book Editor of http://ONDotNet.com > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Powell, > Simon > Sent: Wednesday, March 12, 2003 4:36 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] DirectoryServices COMException > > > Hi, > > I have following line in my test application: > > DirectoryEntry Peopleroot = new > DirectoryEntry("LDAP://uatgds.gb.dresdnerkb.com:389/ou=people, > o=dresdnerkb.c > om","uid=UATwebstationappdiscoveryROAppLogin,ou=ROAppLogins,ou > =Resources,o=d > resdnerkb.com","312sima"); > > When I step through the code in debug mode I get the following error: > > <error: an exception of type: > {System.Runtime.InteropServices.COMException} > occurred> > occurred> System.DirectoryServices.Interop.UnsafeNativeMethods.Iads > > I'm trying to access a container on a Netscape Directory server, but I > can't find any documentation to explain this error. Can help explain > why this error is occurring? > > Any help will be much appreciated. > > Simon Powell > > Dresdner Kleinwort Wasserstein > Core Engineering > * Internal: x59263 * External: 020 7475 9263 > * Internet [EMAIL PROTECTED] > > > > > ---------------------------------------------------------------------- > If you have received this e-mail in error or wish to read our e-mail > disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. > ---------------------------------------------------------------------- > > > =================================== > This list is hosted by DevelopMentorR http://www.develop.com You may > be interested in Guerrilla .NET, 24 March 2003, in London > http://www.develop.com/courses/gdotnet > > View archives and manage your subscription(s) at > http://discuss.develop.com > > =================================== This list is hosted by DevelopMentor(r) http://www.develop.com You may be interested in Guerrilla .NET, 24 March 2003, in London http://www.develop.com/courses/gdotnet View archives and manage your subscription(s) at http://discuss.develop.com ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- =================================== This list is hosted by DevelopMentor� http://www.develop.com You may be interested in Guerrilla .NET, 24 March 2003, in London and Boston http://www.develop.com/courses/gdotnet View archives and manage your subscription(s) at http://discuss.develop.com
