Hi All,
Don't know why I'm getting this error. I've added the System.DirectoryServices lib to my project and am importing System.DirectoryServices.
Here is the code that tries to access DirectorySearcher (App_Code/DBaccess):
Also, if I move the DBaccess.vb file to the root directory, I do not see the error. So why can't I access the DirectorySearcher from within App_Code directory?
Thanks,
Bob W.
Don't know why I'm getting this error. I've added the System.DirectoryServices lib to my project and am importing System.DirectoryServices.
Here is the code that tries to access DirectorySearcher (App_Code/DBaccess):
VB.NET:
Imports System.DirectoryServices
Namespace App_Code
Public Class DBaccess
Public Sub New()
End Sub
Dim ds As New DirectorySearcher
End Class
End Namespace
Also, if I move the DBaccess.vb file to the root directory, I do not see the error. So why can't I access the DirectorySearcher from within App_Code directory?
Thanks,
Bob W.
Last edited: