----------------------------------------------------------------------------
----
The filename, directory name, or volume label syntax is incorrect.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: The filename, directory
name, or volume label syntax is incorrect.
----------------------------------------------------------------------------
----
This code is running in an asp.net page and I am binding to the Active
Directory using domain admin credentials. I have tried running the same code
as a console application and it works without any problems so I am guessing
security. Anyone come across anything like this before?
Thanks
John
I've not seen any instances of this method failing with a
FileNotFoundException.
Joe K.
"John Brennan" <johnvb...@hotmail.com> wrote in message
news:%23aj5AnA...@TK2MSFTNGP11.phx.gbl...
"Joe Kaplan (MVP - ADSI)" <joseph....@removethis.accenture.com> wrote
in message news:OtanAXC5...@TK2MSFTNGP11.phx.gbl...
Joe K.
"John Brennan" <johnvb...@hotmail.com> wrote in message
news:evwB7aC5...@TK2MSFTNGP10.phx.gbl...
Thanks
John
"Joe Kaplan (MVP - ADSI)" <joseph....@removethis.accenture.com> wrote
in message news:eMwPFmC5...@TK2MSFTNGP12.phx.gbl...
I narrowed down the problem to 1 line of code: the binding operation.
This bind causes set password to work:
String Path = "LDAP://localhost:389/CN=Users,DC=Mobhaile,DC=Test"; // can
also use "LDAP://CN=Users,DC=Mobhaile,DC=Test String Username = @"
Mobhaile\Administrator";
String Password = "admin";
DirectoryEntry parent = new DirectoryEntry(Path, Username, Password);
This bind causes set password to fail:
String Path = "LDAP://192.168.10.110:389/CN=Users,DC=Mobhaile,DC=Test";
String Username = @"Mobhaile\Administrator";
String Password = "admin";
DirectoryEntry parent = new DirectoryEntry(Path, Username, Password);
Not sure why this is but both behave consistently every time.
John
"John Brennan" <johnvb...@hotmail.com> wrote in message
news:u2i2qqD5...@TK2MSFTNGP10.phx.gbl...