Active Directory - Getting error System.DirectoryServices.DirectoryServicesCOMException (0x8007203B)

Asked By damodar reddy on 22-Nov-12 10:53 AM
Getting the System.DirectoryServices.DirectoryServicesCOMException (0x8007203B) error when trying to do AD authentication
Robbe Morris replied to damodar reddy on 22-Nov-12 11:52 AM
This "usually" means that the windows account that your IIS app pool is running under doesn't have permission to use the COM dll you are attempting to use.

When you run your code in Visual Studio .NET, it runs under your windows account not one in IIS (unless you specifically configure it this way).

You are going to have to figure out which COM dll and/or its dependencies you need access to and grant it the appropriate rights.