The other day I installed CRM 2011 into one of our environments. I had setup the environment as is recommended in the deployment guide, with multiple service users and all of the security permissions set on the local machine; like I had done on many other environments before. The installation went well. There were no errors and I could create new organizations and what not. However the problem came when I attempted to logon. I was fairly certain that I had entered the correct credentials, and at this stage there was only the deployment administrator added to the deployment. I thought that maybe the deployment administrator hadn’t been added to the organization, even though it said it had been in the Deployment Manager. So I checked the database and sure enough it was in there. “Very odd” I thought. So I did what every admin in my shoes would do and checked the Event Viewer. I found this:
Host CRM-02: A Microsoft Dynamics CRM Asynchronous Processing Service operation of type 27 has failed Organization ID: 7b89ad4b-5c36-42ac-bb55-0aa6192211b2 Organization Unique Name: Origins Error code: 80040216 Error description: Could not find GUID for serverThinking this might have been some kind of security issue I double checked all of my security settings on the local machine and on the AD server. But alas, there was no visible problem. So I consulted Old Man Google. Seeing as I followed the deployment guide pretty well, I assumed that someone else must have had this issue. Unfortunately, I found that there were lots of people with the same issue, except with no resolutions.
I found someone that mentioned that the DNS server was off in their environment and turning it back on solved the problem. I knew that all was well with our DNS so it couldn’t have been that. I found another that said: Setting “Load User Profile” to True for the IIS Application Pool “Microsoft Team Foundation Server Application Pool” worked for them. They didn’t say what version of CRM it was but at that point I was willing to give anything a go! But that failed as well. Unfortunately there was no other knowledge that Old Man Google could bestow upon me.
After wracking my brain and re, re, re-reading the deployment guide; I remembered another issue that I had in this environment. Quite a while ago, I was deploying another application that also used Service Users that I had to create for that application; and I had a very similar problem. The application couldn’t read the Active Directory. I found that if I changed the service users to be domain administrators, the problem went away. So I tried that out on this CRM 2011 deployment and the results were the same!
What had happened was that before my time. In the Jurassic period; when this Active Directory was created, the person who created it didn’t want the average user to be able to read attributes from the Active Directory. Thus, they changed the level of permission (or so I assume) accordingly and created a security group who could read attributes.
After I added my service users to this special group, removed them from the Domain Admins group and restarted all of the CRM 2011 services. The problem was forever solved!
What I really wanted to say in this post was that the error I mentioned earlier appears to occur when the Active Directory cannot be read by the service users. So check your DNS is running and that AD is working correctly. If all seems well, try temporarily adding your service users to the domain admin group or some group that would have the power to read the domain attributes and see if that rectifies your issue. If it does, your issue will most likely have a similar solution to mine. If not, I hope this post at least points you in the right direction!
Kyle Smith

