Last post Aug 11, 2009 07:40 AM by cv_sudheer
Aug 10, 2009 10:07 PM|ComputerCorp|LINK
Coming from VB6 this is my first foray into the world of .NET and I have run into an issue. Here is some very simple code to get the list of AD users into a listbox:
Dim Container As IADsContainer
Dim Child As IADs
Container = GetObject("LDAP://ou=Users,dc=RISCPL,dc=local")
Container.Filter = "user"
For Each Child In Container
When I hit the button that calls it I get an error:
System.Exception was unhandled
Message="Cannot create ActiveX component."
Can anyone tell me what I have to do to get this code to work? I have been googling for hours and cannot find anything that helps :(.
Aug 11, 2009 07:40 AM|cv_sudheer|LINK
The problem may be due to Browser security settings.
try by changing the browser security settings
Enable Initialize and script Active X Controls not marked as safe for Scripting