web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2011 outlook client ADFS setup issue

(0) ShareShare
ReportReport
Posted on by 355

Hi all,

I've seen a few posts on here regarding issues with the outlook client for CRM 2011 throwing errors while the external web access works fine with the same authentication but I've not yet seen anything which resolves the issue for me or shows the same error in the log so thought it best to start a new thread. 

I'm using windows 8 CP and have confirmed with others that after enabling windows identity foundation 3.5 the outlook plugin works fine (see here: http://nzregs.wordpress.com/2012/03/27/outlook-client-for-crm-2011-on-windows-8-consumer-preview/)

After enabling Windows Identity Foundation 3.5 I expected things to run smooth, but I' still getting the dreaded "cannot connect to Microsoft dynamics crm as we cannot authenticate your credentials......." error so I turned on tracing and found the following:

  • >Exception during Signin System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://adfs.dixxxxxxxxxxxns.uk.com/adfs/services/trust/13/username that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 82.xxx.xxx.155:80

 

Now I dont understand why a connection is being tried on port 80 for authentication, but surely this should be using port 443 just like the web interface login? 

We only have port 443 open for ADFS, can someone offer any help?

*This post is locked for comments

I have the same question (0)
  • Paul DSM Jones Profile Picture
    355 on at

    Here is another event in the trace log:

    >Exception during Signin System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to adfs.digxxxxxxxxxxons.uk.com/.../usernamemixed. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

  • Paul DSM Jones Profile Picture
    355 on at

    also the enpoints mentioned in the trace logs are both active, and as stated the web client works fine after redirecting tot he ADFS login page. All on https.

  • SteveDrakey Profile Picture
    30 on at

    I am having the same issue.

    I have seen a post that suggests adding things to the host file and removing the HomeRealmUrl setting but I suspect that worked as it failed back to non ADFS.

    So... I have tried the same things as you

    I have made sure /adfs/services/trust/13/username is enabled and allowed for proxy

    When I trace with fiddler I can see the post to /adfs/services/trust/13/username and it returns a token.

    if you get anywhere please share.. I will do this same.

    I am about to write some code to test rather than use the outlook client. I am also about to try on another PC.

    Many Thanks

    Steve

  • Verified answer
    Paul DSM Jones Profile Picture
    355 on at

    well looks to have been caused by a time issue, the CRM server was out by 6 minutes (not sure why this was as their all set to sync with the domain and all other servers were in sync).

    What caused me to look was I returned to the office today and my domain computer wouldn't login to CRM via outlook, I traced it and found a time sync issue.

    anyway I synced time on the CRM server and all is well.

  • SteveDrakey Profile Picture
    30 on at

    ah, wish I could say that my issue was caused by the same :(

    are you on a US timezone? I wonder if its a non US local issue.

  • Solomon Profile Picture
    70 on at

    Hi,

    One of the issues could be if the time on the CRM, ADFS servers are not sync with the DC.

    Secondly, I would recommend you to take a look at the ADFS configuration to see if it is setup correctly (including the website, port numbers for the default website).

    Please run fiddler while you configure outlook client to see if we are getting a success to the ADFS end points like - adfs.dixxxxxxxxxxxns.uk.com/.../mex

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans