“The given key was not present in the dictionary” issue in Sharepoint 2010 RTM
Lately I hit a very strange issue while configuring Sharepoint 2010. It installed fine on Windows Server 2008 R2 with local SQL Server 2008 R2 instance. However I had strange errors in central administration, e.g.:
- “The given key was not present in the dictionary” error when attempting to run the Configure Farm Wizard
- Moreover it seemed as though the same user had different permissions in central admin when browsing it locally on server or remotely!
- The error “The given key was not present in the dictionary” repeated itself while attempting to configure Sharepoint SQL reporting integration/
The Sharepoint logs (in “14” hive) showed that it seemed this method failed:
GetUserPropertyFromAD(SPWebApplication webApplicaiton, String loginName, String propertyName)
So I thought its an AD permission issue, and it was! I had to grant AUTHENTICATED USERS READ permission (probably read ‘some’ information would be enough) to the MOSS accounts (I granted to the DB access account and managed services account). After that an IISRESET and it worked.
Again Microsoft could improve its error messages – nothing new ;D