K
Keith Jakobs, MCP
Hi All....
I'm having a HECK of a time connecting to Active Directory using VB in
Visual Studio.NET 2003. Can anyone PLEASE help me?
All I am trying to do is list the current members of our Active Directory on
a web page. If I can connect to the AD interfaces, then I think I can
handle it from there.
I do have a VS.NET C# project successfully working and enumerating names,
but can NOT for the life of me get VB to work with AD.
I originally tried to do it outside of VS.NET, but ran into problems trying
to reference the System.DirectoryServices namespace unless I compiled the
project inside VS.NET. I did make an earlier post to this group about this
issue, and though the recommendations I received were insightful, they did
not work (neither precompiling, nor including a direct reference to the .dll
in the Page directive worked). I was finally able to import the name space
by copying the dll to the application's /bin directory. But why would I
want to make a copy of it when it already exists on the system? So what
happened to being able to build .NET applications with just a text editor???
So I decided to try a walkthrough of MS Knowledge Base article # 326340
(http://support.microsoft.com/default.aspx?scid=kb;en-us;326340&Product=aspn
et). I followed it to the letter, and when I try to build the project in
VS.NET, I get compilation errors in the .vb file I cut and pasted directly
from the article!!!! The three errors are all in the LdapAuthentication.vb
file:
E:\inetpub\AuthTest\LdapAuthentication.vb(19): Array bounds cannot appear in
type specifiers.
E:\inetpub\AuthTest\LdapAuthentication.vb(23): Name 'entry' is not declared.
E:\inetpub\AuthTest\LdapAuthentication.vb(24): Name 'entry' is not declared.
So.... if anyone can PLEASE HELP me get going here (I'm almost hoping one of
you can confirm my install is pooched, otherwise I have no idea why it does
not like the instructions as entered according to MS)
Again, all I need to do is connect to AD from a Web Page and list all the
users (Intranet site only).
Thanks in advance!
Keith C. Jakobs, MCP
I'm having a HECK of a time connecting to Active Directory using VB in
Visual Studio.NET 2003. Can anyone PLEASE help me?
All I am trying to do is list the current members of our Active Directory on
a web page. If I can connect to the AD interfaces, then I think I can
handle it from there.
I do have a VS.NET C# project successfully working and enumerating names,
but can NOT for the life of me get VB to work with AD.
I originally tried to do it outside of VS.NET, but ran into problems trying
to reference the System.DirectoryServices namespace unless I compiled the
project inside VS.NET. I did make an earlier post to this group about this
issue, and though the recommendations I received were insightful, they did
not work (neither precompiling, nor including a direct reference to the .dll
in the Page directive worked). I was finally able to import the name space
by copying the dll to the application's /bin directory. But why would I
want to make a copy of it when it already exists on the system? So what
happened to being able to build .NET applications with just a text editor???
So I decided to try a walkthrough of MS Knowledge Base article # 326340
(http://support.microsoft.com/default.aspx?scid=kb;en-us;326340&Product=aspn
et). I followed it to the letter, and when I try to build the project in
VS.NET, I get compilation errors in the .vb file I cut and pasted directly
from the article!!!! The three errors are all in the LdapAuthentication.vb
file:
E:\inetpub\AuthTest\LdapAuthentication.vb(19): Array bounds cannot appear in
type specifiers.
E:\inetpub\AuthTest\LdapAuthentication.vb(23): Name 'entry' is not declared.
E:\inetpub\AuthTest\LdapAuthentication.vb(24): Name 'entry' is not declared.
So.... if anyone can PLEASE HELP me get going here (I'm almost hoping one of
you can confirm my install is pooched, otherwise I have no idea why it does
not like the instructions as entered according to MS)
Again, all I need to do is connect to AD from a Web Page and list all the
users (Intranet site only).
Thanks in advance!
Keith C. Jakobs, MCP