As a reference to people running code that is talking to Active Directory and are getting this cryptical message. In most cases it is a permissions issue. Make sure that your code is running under the application pool account (meaning SPSecurity.RunWithElevatedPrivileges) and that this account has the necessary rights to do so on AD…. Read more
There is always a point in sharing.
When you are building SharePoint projects based on a framework/base approach you’ll find yourself in the situation where you want to use specific modules from one of your base projects. The correct way to do that is to ensure that the required features are activated on the farm / web application / site collection / site that provision you those… Read more