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)

Can't sign into CRM for Outlook client

(0) ShareShare
ReportReport
Posted on by

Hi guys,

Please could you help with the error log below? I'm trying to log into CRM through the client for Outlook and it keeps saying that I have the wrong credentials. We use Office 365 so the passwords are shared between Exchange and CRM. It is CRM Online 2013 and I can sign on without any issues through the web browser. Have tried this all day!

Thanks in advance

C

11:58:14| Error| Error connecting to URL: https://dev.crm5.dynamics.com/XRMServices/2011/Discovery.svc Exception: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)


12:13:58| Error| Error connecting to URL: https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc Exception: Microsoft.Crm.CrmException: Logon failed because credentials are invalid ---> Microsoft.Crm.Passport.IdCrl.IdCrlException: LogonIdentityExWithUI()
at Microsoft.Crm.Passport.IdCrl.FederationLogOnManager.LogonPassport(String policy, String partner, LOGON_FLAG logonFlag)
at Microsoft.Crm.Passport.IdCrl.FederationLogOnManager.Logon(String userName, String password, String partner, String policy, String& memberName)
at Microsoft.Crm.Outlook.ClientAuth.PassportAuthProvider`1.SignIn()
--- End of inner exception stack trace ---
at Microsoft.Crm.Outlook.ClientAuth.PassportAuthProvider`1.SignIn()
at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    This part means outlook client tried to pull a token from the discovery service but the creadentials are not good:

    "12:13:58| Error| Error connecting to URL: dev.crm.dynamics.com/.../Discovery.svc Exception: Microsoft.Crm.CrmException: Logon failed because credentials are invalid ---> "

    you may need to check your credentials in the 360 console and repeat that

    www.microsoft.com/.../set-up-crm-for-outlook.aspx

    usually your login name will tell crm where you are. on this example the login is "admin@test.onmicrosoft.com. there can be only one CRM online org called "test"

    mscrmonline.wordpress.com/.../how-to-setup-microsoft-office-365-and-crm-online-trial-outlook-client

    you can also try run it with Fiddler and see if it is calling a disco service that is the correct for your region

    Location  Discovery Web service URL  Identity Provider
     North America  https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft account
     https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft Office 365
     EMEA  https://dev.crm4.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft account
     https://disco.crm4.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft Office 365
     APAC  https://dev.crm5.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft account
     https://disco.crm5.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft Office 365
     South America  https://disco.crm2.dynamics.com/XRMServices/2011/Discovery.svc  Microsoft Office 365
  • Community Member Profile Picture
    on at

    Thanks Bruno, unfortunately still not working.

    I can verify that the credentials I am using are correct, as I log into CRM daily via browser. Have typed this maybe 50 times into CRM for Outlook today.

    Fiddler:

    The error:

     

    I can't think of what other credentials to use as the ones I am using work everywhere else but the CRM for Outlook client???

  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    Hi,

    I just tried with a fresh CRM online site

    picked the CRM Online option as below

    ol2.png

    entered the info that I received from 360 (name and user id as below)

    ol3.png

    and first time got the same message as you

    I deleted a old profile that was on the CRM outlook wizard, tried again and now it works

    ol4.png

    I suspect there could be some temp issue with latency but it does connect eventually

    Did you apply the rollup upgrade for crm outlook client?

    your fiddler read shows it is accessing the urls correctly, maybe there is a old credential cached

  • Suggested answer
    Ragnar Hilmarsson Profile Picture
    3,427 on at

    Hi

    Have you try this steps.

    1.Close outlook

    2.Clean Internet Explorer Cache

    3.Delete files from %temp% folder

    4.Got to start -> run "control keymgr.dll "

    and delete saved credentials for CRM online.

    5.Reconfigure Dynamics Crm client again.

    Regards

    Ragnar Hilmarsson

  • Community Member Profile Picture
    on at

    Thanks Bruno, I've followed all of this and it's still not working. It's the first time I'm setting up CRM for Outlook on this computer so there are no other profiles. It's almost like my password is wrong (but I know it's right because it's what I use to log into browser based CRM).

    The only thing on your list I haven't tried is the rollup upgrade - could you please give me some more detail on this and how to do it? I am running Outlook 2013, and have been using the CRM2013 Client for Outlook.

    Thanks in advance

    C

  • Community Member Profile Picture
    on at

    Thanks Ragnar,

    Unfortunately this doesn't work either but I've learnt some tips from this. The error log I'm getting is below, any clues?

    13:57:33|  Error| Error connecting to URL: dev.crm5.dynamics.com/.../Discovery.svc Exception: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

    Server stack trace:

      at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

      at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)

      at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)

      at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)

      at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)

  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    I think there is some issue with your password or something got really badly cached. however,  Ragnar's suggestion should had cleared the caching. look like some issue with password or maybe  the way that you enter that. avoid copy and paste. try to type what is on your 360 welcome email. anyway, you need to first install this:

    www.microsoft.com/.../details.aspx

    select the CRM2013-client (32 or 64 depending of your office type)

    and after that get this one

    www.microsoft.com/.../details.aspx

  • Verified answer
    Community Member Profile Picture
    on at

    Thanks Bruno,

    Although it's the first time I'm installing the CRM client for Outlook on this machine, I've done it multiple times before on the machines of other staff members. I have always typed in my password and it works fine in a web browser, been years since I received my 360 welcome email...

    I've also just tried doing Ragnar's steps again, and applied for a 30 day CRM Online trial. Still couldn't get it to log into the fresh trial. Something on my machine maybe?

    I've downloaded the things but not sure what to do with them

  • Bruno Lucas Profile Picture
    5,421 on at

    Hi Chon

    just run the files, SP1 first and SP1 rollup 1 after.

    you can also go to 365 and log this issue with Microsoft:

  • Verified answer
    Ragnar Hilmarsson Profile Picture
    3,427 on at

    Is your account Microsoft  account or Office 365 account?

    I have strange bugs with one of my clients,they are using office 365 for exchange but Microsoft account for CRM online.Maybe there are some conflict.

    Did you delete the connection from CRM wizard and then clean the cache?  

    Try to do it again and also delete from all SDF files from user profile location

    C:\Users\%username%\AppData\Local\Microsoft\MSCRM\Client

    C:\Users\%username%\AppData\Roaming\Microsoft\MSCRM\Client

    go through my previous suggestion

    Also put  *.crm.dynamics.com and *.live.com to trusted site in IE

    Regards

    Ragnar Hilmarsson

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