Coming from a Visual Basic 6 background I used to make ADSI requests like this:
Code:
Dim Container As IADsContainer
Container = GetObject("LDAP://ou=Users,dc=RISCPL,dc=local")
Container.Filter = "user"
But in Visual Basic 2008 I get errors:
"A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll"
"Cannot create ActiveX component."
Having only just installed and started working with 2008, I am guessing I am missing something obvious to get this to work.
If anyone could help out and tell me where I am going wrong, I would very much appreciate it.
Bookmarks