Call System.DirectoryService From an ASPX page

I needed to troublehoot some active directory calls in my code–recompiling was a pain. The solution is to add this into you web.config file and add a reference to the dll that is registered in the GAC. Check that the dll on your server has the same public key token (c:\windows\assembly) and version #.

Thanks to


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s