I have been trying to configure the outlook add-in for CRM Dynamics 2011 while I was connected to the internet (opposed to my company network) without success for days now.
I initially thought it was coming from my Claims and IFD configuration, but it was not. It was just a bug ! And there is now a hot fix.
Let’s assume you have a Dynamics CRM 2011 platform exposed over the internet (Internet Facing Deployment) and that you need or want your users to be able to configure their Outlook Add-in while connected to the Internet (without any connection to your company’s network, nor any kind of VPN) : You need to apply this fix
(My) explanation :
The rollup 5 introduced a bug. The outlook config wizard was trying to connect to the Active Directory. The problem is that in some cases, when you are not connected to your company’s network, the Active Directory is not available. The configuration wizard was just crashing, due to the fact it was not capable to contact the Active Directory. As simple as that. The hotfix above changed the behavior so that it is no longer required to have the AD available to perform the configuration.
Worked like a charm for me ! So happy !
Side note : I was using the Microsoft Dynamics CRM 2011 for Microsoft Office Outlook add-in with Rollup 5 on top.
And here was the error log I was getting while trying to configure outlook using the configuration wizard :
17:57:06| Error| Exception : The server could not be contacted. at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties) at System.DirectoryServices.AccountManagement.PrincipalContext.DoServerVerifyAndPropRetrieval() at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, ContextOptions options, String userName, String password) at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType) at System.DirectoryServices.AccountManagement.UserPrincipal.get_Current() at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.SelectOrganization(Guid organizationId) at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment(DeploymentsDeployment deployments, AuthUIMode uiMode) at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Run(Boolean runInsideOutlook) at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Start(String args, Boolean runInsideOutlook)