Hi Tom,
I've reviewed the documentation on deploying the Dynamics App for Outlook and confirmed that everything is set up correctly. My ADFS settings appear to be correct as well. Form Authentication on the Intranet primary authentication is enabled and it was enabled prior to attempting to deploy the Dynamics App for Outlook.
The event viewer on the CRM server is showing the following:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/2/2017 3:20:14 AM
Event time (UTC): 1/2/2017 9:20:14 AM
Event ID: e8f05036833443dbb95a2adf3a27c4cb
Event sequence: 319
Event occurrence: 5
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-131278216191415370
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: [SERVER NAME]
Process information:
Process ID: 3868
Process name: w3wp.exe
Account name: [CRM App Pool Service Account]
Exception information:
Exception type: UriFormatException
Exception message: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.UriBuilder..ctor(String uri)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.UpdateRedirectingEventArgsNonPathBasedUrl(RedirectLocation redirectLocation, RedirectingToIdentityProviderEventArgs e)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.SendToIdentityProvider(RedirectLocation redirectLocation)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.RedirectToIdentityProvider(String uniqueId, String returnUrl, Boolean persist)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Request information:
Request URL: https://[CRM Org URL]:443/XRMServices/2011/Organization.svc/web?SdkClientVersion=7.0.0000
Request path: /XRMServices/2011/Organization.svc/web
User host address: [IP Address]
User:
Is authenticated: False
Authentication Type:
Thread account name: [CRM App Pool Service Account]
Thread information:
Thread ID: 31
Thread account name: [CRM App Pool Service Account]
Is impersonating: True
Stack trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.UriBuilder..ctor(String uri)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.UpdateRedirectingEventArgsNonPathBasedUrl(RedirectLocation redirectLocation, RedirectingToIdentityProviderEventArgs e)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.SendToIdentityProvider(RedirectLocation redirectLocation)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.RedirectToIdentityProvider(String uniqueId, String returnUrl, Boolean persist)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)