Dynamics 365 App for Outlook Issue - Microsoft Dynamics CRM

Loading...

Dynamics 365 App for Outlook Issue Sign In (/login?ReturnUrl=%2Fcrm%2Ff%2F117%2Ft%2F221514)





Share

RSS (/crm/f/117/rss?Mode=0)

travissmithv1 (/members/travissmithv1) asked a question on 27 Dec 2016 10:08 AM

(/members/travissmithv1)

I recently installed the December 2016 update to our Dynamics CRM 2016 on-premise. I am looking to take advantage of the new Dynamics 365 App for Outlook, but I'm having trouble authenticating with it in Outlook. I currently have CRM configured with claims-authentication, IFD using ADFS 3.0 and Oauth2. I have set up server synchronization for myself and this works successfully. I have deployed the App for Outlook to my Outlook 2016 application.

When I attempt to use the Dynamics 365 App for Outlook, it attempts to authenticate. I enter my travissmithv1 domain email address and password and then IE opens up with a 404 - File or directory not (/members/travissmithv1) found message. The URL that it's trying to go to is: "http://[CRM ORG URL]/CrmMailApp/undefined?client_id=1bef97ab-72ae-e511-80db005056bd0caf&redirect_uri=http://[CRM ORG URL]/crmmailapp/code_auth.aspx&resource=http://[CRM ORG URL]&response_type=code&state=undefined?client_id=1bef97ab-72ae-e511-80db005056bd0caf-dc2db2b5b7f40166c1de4e00b3f8fbb2" I have reviewed the logs for CRM, the Outlook plugin, and ADFS and I have not been able to determine why I'm having trouble getting the Dynamics 365 App for Outlook to work. Does anyone have any ideas? Tags: Microsoft Dynamics CRM 2016: Microsoft Office Outlook Client (/crm/f/117/tags/Microsoft%2bDynamics%2bCRM%2b2016/Microsoft%2bOffice%2bOutlook%2bClient) ADFS 3.0 (/crm/f/117/tags/ADFS%2b3-0)



IFD (/crm/f/117/tags/IFD)

App for Outlook (/crm/f/117/tags/App%2bfor%2bOutlook)



outlook (/crm/f/117/tags/outlook)

Dynamics 365 (/crm/f/117/tags/Dynamics%2b365)

All Responses (51)

Only Answers

Tom Northrup (/members/thomasn) responded on 27 Dec 2016 10:29 AM

Hi Travis, thanks for reaching out. It seems you have reviewed the documentation on setting up Dynamics App for Outlook specific to on-premise found here technet.microsoft.com/.../dn946901.aspx (http://technet.microsoft.com/library/dn946901.aspx).

(/members/thomasn)

Tom Northrup (/members/thomasn)

With this error you may want to look at the ADFS settings for Form Authentication on the intranet, or go back to how the App for Outlook was configured. Was it turned on within CRM before all the network settings were adjusted to allow apps? Let us know what you find, eager to help.

Works For RSM US LLP in Kansas City, MO @tomnorthrup (http://twitter.com/TomNorthrup) LinkedIn (http://www.linkedin.com/in/thomafnorthrup/) Blog (http://dynamicscrmpros.com) My Badges (/badges/23)

(/badges/12)

(/badges/18)

K1_ (/members/k1_5f00_) responded on 28 Dec 2016 7:49 PM

I'm having the exact problem. I've tried most of the troubleshooting, this was almost working after install of SP2 (365) but after reconfig of clamins & IFD and updated if ADFS Federated data if got exact this problem.

(/members/k1_5f00_)

Any suggestions?

K1_ (/members/k1_5f00_) My Badges (/badges/21)

Tom Northrup (/members/thomasn) responded on 29 Dec 2016 10:03 AM

K1, are you using Claims authentication as well? There seems to be a clear requirement on forms authentication in the link above. I have not installed this on-premise yet but typically when it comes to exchange, ADFS, and apps there are several moving pieces to go through.

(/members/thomasn)

Tom Northrup (/members/thomasn) Works For RSM US LLP in Kansas City, MO @tomnorthrup (http://twitter.com/TomNorthrup) LinkedIn (http://www.linkedin.com/in/thomafnorthrup/) Blog (http://dynamicscrmpros.com) My Badges (/badges/23)

(/badges/12)

(/badges/18)

travissmithv1 (/members/travissmithv1) responded on 2 Jan 2017 3:34 AM

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 (/members/travissmithv1) attempting to deploy the Dynamics App for Outlook. The event viewer on the CRM server is showing the following: travissmithv1 Event code: 3005 (/members/travissmithv1) 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.UpdateRedirectingEv entArgsNonPathBasedUrl(RedirectLocation redirectLocation, RedirectingToIdentityProviderEventArgs e) at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.SendToIdentityProvid er(RedirectLocation redirectLocation) at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.RedirectToIdentityPro vider(String uniqueId, String returnUrl, Boolean persist) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecution Step.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Request information: Request URL: http://[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.UpdateRedirectingEv entArgsNonPathBasedUrl(RedirectLocation redirectLocation, RedirectingToIdentityProviderEventArgs e) at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.SendToIdentityProvid er(RedirectLocation redirectLocation) at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.RedirectToIdentityPro vider(String uniqueId, String returnUrl, Boolean persist) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecution Step.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

danothemen (/members/danothemen) responded on 3 Jan 2017 10:02 AM

Hi, when I was attempting to do this with update 1 I got a similar message while trying to authenticate. The issue turned out to be the adfs command generated by CRM on the App for Outlook page. It was missing a "/" in the middle of the url. I don't know if this has been fixed in update 2, but it's probably worth looking at.

(/members/danothemen)

danothemen (/members/danothemen)

Sergey Kovalev (/members/sergey-kovalev) responded on 3 Jan 2017 10:05 PM

danothemen, can be more, where the missing "/" in the middle of the URI? The same problem December 2016 Update Dynamics 365 + Exchange 2016 CU4 + ADFS W2K12R2

(/members/sergeykovalev)

Sergey Kovalev (/members/sergeykovalev) Works In Russian Federation

travissmithv1 (/members/travissmithv1) responded on 3 Jan 2017 10:35 PM

danothemen, are you referring to the URL that is located in the Add-ADFSClient command that is provided by the CRM app such as below: Add-AdfsClient -Name "Dynamics 365 App for Outlook" -ClientId 1bef97ab-72ae-e511-80db005056bd0caf -RedirectUri http://[CRM DNS]/[CRM ORG]crmmailapp/code_auth.aspx

(/members/travissmithv1) I'm guessing here, but the URL at the end would need to be corrected as: Add-AdfsClient -Name "Dynamics 365 App for Outlook" -ClientId 1bef97ab-72ae-e511-80dbtravissmithv1 005056bd0caf -RedirectUri http://[CRM DNS]/[CRM ORG]/crmmailapp/code_auth.aspx (/members/travissmithv1) Is this what you were referring to?

danothemen (/members/danothemen) responded on 3 Jan 2017 11:04 PM

Yes indeed, that is what I was referring too, sorry I didn't have that on hand earlier.

(/members/danothemen)

danothemen (/members/danothemen)

travissmithv1 (/members/travissmithv1) responded on 4 Jan 2017 7:31 AM

I updated the AdfsClient entry for the "Dynamics 365 App for Outlook" to include the missing "/", but this didn't seem to change anything. I rebooted both the CRM server and the ADFS server and tried it again and I still get the following: When I attempt to use the Dynamics 365 App for Outlook, it attempts to authenticate and then IE (/members/travissmithv1) opens up with a 404 - File or directory not found message. The URL that it's trying to go to is: "http://[CRM ORG URL]/CrmMailApp/undefined?client_id=1bef97ab-72ae-e511-80dbtravissmithv1 005056bd0caf&redirect_uri=http://[CRM ORG (/members/travissmithv1) URL]/crmmailapp/code_auth.aspx&resource=http://[CRM ORG URL]&response_type=code&state=undefined?client_id=1bef97ab-72ae-e511-80db005056bd0caf-dc2db2b5b7f40166c1de4e00b3f8fbb2" I also ran a repair of the CRM server application files, which took awhile, but didn't help either.

K1_ (/members/k1_5f00_) responded on 4 Jan 2017 7:40 AM

Hi

(/members/k1_5f00_)

After some trial and error I've figured out that the ADFS registration link should be like this. I've added both a internal and external registration. My problem now is that I can use CrmMail App from Exchange WebMail but not from Outlook, both internally, it look like Outlook are using some other sort of path?

Add-AdfsClient -Name "Dynamics 365 App for Outlook" -ClientId 1f778b93-ac9b-4c36-9f9bK1_ bcf714312ef1 -RedirectUri @("external.comapny.com/.../code_auth.aspx (/members/k1_5f00_)(http://external.comapny.com/crmmailapp/code_auth.aspx)", My Badges (/badges/21)

"internal.company.com/.../code_auth.aspx (http://internal.company.com/MusicPartnerAB/crmmailapp/code_auth.aspx)")

danothemen (/members/danothemen) responded on 4 Jan 2017 9:27 AM

Hi K1_ could you explain to me what that does? I'm afraid I'm quite unfamiliar with adfs. However you and I are experiencing the same issue with regard to the webmail working and outlook not and the urls they point to being different.

(/members/danothemen)

danothemen (/members/danothemen)

travissmithv1 (/members/travissmithv1) responded on 4 Jan 2017 9:51 AM

Hi K1_, I updated my AdfsClient entry to be formed like yours and restarted the ADFS service. However, the Dynamics App doesn't work in Exchange WebMail or Outlook for me. Was there anything else that you did after updating the AdfsClient registrations?

(/members/travissmithv1)

travissmithv1 (/members/travissmithv1)

jonathanmellon (/members/jonathanmellon) responded on 17 Jan 2017 2:54 PM

Has anyone else managed to resolve this? We have just upgraded to Exchange 2016 from 2010 in order to use the App but we get exactly the same behaviour

(/members/jonathanmellon)

jonathanmellon (/members/jonathanmellon)

Tom Northrup (/members/thomasn) responded on 20 Jan 2017 9:57 AM

Jonathan, We did some further troubleshooting and turned out to be a bad mailbox in a dev exchange environment. Once they used a different mailbox, and when in production all worked correctly. Sorry no better answer for you.

(/members/thomasn)

Tom Northrup (/members/thomasn) Works For RSM US LLP in Kansas City, MO @tomnorthrup (http://twitter.com/TomNorthrup) LinkedIn (http://www.linkedin.com/in/thomafnorthrup/) Blog (http://dynamicscrmpros.com) My Badges (/badges/23)

(/badges/12)

(/badges/18)

jonathanmellon (/members/jonathanmellon) responded on 20 Jan 2017 10:07 AM

Hi Thomas, Thanks i was able to track it down to an old ADFS entry which i deleted and it now works in OWA however Outlook 2016 we authenticate but the window just stays open and we get a Having trouble signing in?

(/members/jonathanmellon)

jonathanmellon (/members/jonathanmellon)

Question Status Suggested Answer

1

2 3 4

>

(http://community.dynamics.com/crm/f/117/t/221514? (http://community.dynamics.com/crm/f/117/t/221514? (http://community.dynamics.com/crm/f/117/t/221514? (http://community.dynamics.com/crm/f/117/t/221514? (http://community.dynamics.com/crm/f/117/t/221514? pi51685=1) pi51685=2) pi51685=3) pi51685=4) pi51685=2)

Helpful Resources Support Blog (/crm/b/dynamicscrmsupportblog/default.aspx)

Technical Support FAQ: Online (http://bit.ly/KsX7NG)

Problems configuring the CRM Outlook client? Use the wizard! (http://bit.ly/IaLQo6)

Technical Support FAQ: On-Premise (http://bit.ly/IoWpT3)

Customer Center for Microsoft Dynamics CRM 2013 (http://www.crmcustomercenter.com/)

Billing FAQ (http://bit.ly/ITk4eh)

Customer Center for Microsoft Dynamics CRM 2011 (http://rc.crm.dynamics.com/rc/2011/enus/default.aspx?ver=5.1)

Implementation Guide (http://bit.ly/KsXfwE) Developer Center and SDK (http://bit.ly/ywSCFa)

Loading...

Dynamics 365 App for Outlook Issue - Microsoft Dynamics CRM

Dynamics 365 App for Outlook Issue Sign In (/login?ReturnUrl=%2Fcrm%2Ff%2F117%2Ft%2F221514) Share RSS (/crm/f/117/rss?Mode=0) travissmithv1 (...

85KB Sizes 3 Downloads 0 Views

Recommend Documents

Microsoft Dynamics 365 Roadmap
ISO 27001(Secure) – ISO 27001 certification confirms that the service complies with the controls and specifications ou

Dynamics 365 for Outlook Troubleshooting - The CRM Book
Troubleshooting Configuration to a CRM Organization; Troubleshooting Tracking-related Issues; Troubleshooting Add-ins; D

DocumentsCorePack for Microsoft Dynamics 365 - mscrm-addons.com
Based on Microsoft Word-templates, the Server- and/or Client based document generation provides you with a set of tools

Dynamics 365 CRM | Customer Relationship Management
Through the collaborative discovery process, the client decided to have PSC deploy CRM and the project evolved from basi

CRM Analysis | CRM Demo | Microsoft Dynamics CRM Software - xRM
We strongly suggest starting your CRM process with our Strategic Analysis. When we are done, we might recommend that Mic

Microsoft dynamics crm tutorials pdf :: Bostoncarmel1989
Makalah transportasi udara, odipolama full movie and doraemon cartoon in urdu kickass and rettai kathire mp4. Gratis sup

Microsoft Dynamics CRM | SAP Business One | Resources
Need whitepapers on Microsoft Dynamics CRM, SAP Business One, or SAGE ERP? ... Home › Resources for Microsoft, Sage, S

Microsoft Dynamics CRM Mail Merge Instructions | PostalMethods.com
Set Up A Mail Merge Template. To use the Dynamics CRM Mail Merge feature, you are required to pre-upload a mail merge te

Strategic Partners - Edgewater Fullscope - Microsoft Dynamics CRM
Offering More to our Customers Through our Partners. As with any successful organization, Fullscope has a small ecosyste

Microsoft Dynamics 365 for Talent - EE: Finance & Operations
Sep 19, 2017 - Staffing your organization. Dynamics 365 for Talent includes the Attract app, which can help you identify