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)

Dynamics CRM 2013 for Outlook - "Object reference not set to an instance of an object" during configuration

(0) ShareShare
ReportReport
Posted on by 140

I have installed the Dynamics CRM 2013 for Outlook 2013 (64 bit) and receive the error below when clicking OK on the configuration dialog.  The organization name appears correctly and Test Connection does not throw an error.

[Window Title]
Microsoft Dynamics CRM for Outlook

[Content]
There is a problem communicating with the Microsoft Dynamics CRM server. The server might be unavailable. Try again later. If the problem persists, contact your system administrator.

[Expanded Information]
Object reference not set to an instance of an object.
at Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo(String redirectEndpoint, String partner, String policy, String& postData)
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.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)
at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()
at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart

System info:

Outlook 2013 (15.0.4535.1508) MSO (15.0.4535.1507) 64-bit
Windows 8.1 Pro 6.3.9600
 Windows Identity Foundation 3.5 feature on
Trusted sites: *.live.com, *.dynamics.com 

Full log:

20:41:50| Info| === Microsoft Dynamics CRM for Outlook Configuration Wizard logging started: 10/10/2013 8:41:50 PM ===
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize
20:41:50| Info| Client Configuration Wizard Version : 6.0.0000.0809
20:41:50| Info| Client Configuration Wizard LanguageID : 1033
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
20:41:50| Info| Query all rows in profile table
20:41:50| Info| Outlook is initialized
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
20:41:50| Info| Client Configuration Wizard Running Mode : ReducedUI
20:41:50|Warning| Client configuration failed with the exception : Cannot start the Microsoft Dynamics CRM for Outlook Configuration Wizard because the configuration file C:\Program Files\Microsoft Dynamics CRM\Default_Client_Config.xml is not valid. Contact your system administrator. at Microsoft.Crm.Application.Outlook.Config.CommandLineArgs.ParseConfigFile(String configFileName, Deployments& deployments)
at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment_ReducedUI()
at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Run(Boolean runInsideOutlook)
20:41:50| Info| Configuration file Type : OnPremise.
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile
20:41:50| Info| Logon mapi store
20:41:50| Info| Logon admin service
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
20:41:50| Info| Query all rows in msg service table
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
20:41:50|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
20:41:50|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
20:42:31|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
20:42:31|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
20:42:31|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
20:42:31|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
20:42:53| Info| Fill organization comboBox with server information.
20:43:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click
20:43:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click
20:43:17| Error| Exception : Object reference not set to an instance of an object. at Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo(String redirectEndpoint, String partner, String policy, String& postData)
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.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)
at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()
at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
20:43:36|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click
20:43:36|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click
20:43:38| Error| Exception : Object reference not set to an instance of an object. at Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo(String redirectEndpoint, String partner, String policy, String& postData)
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.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)
at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()
at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
20:43:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Terminate
20:43:40| Info| Exit code: Default
20:43:40|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Terminate
20:43:40| Info| === Microsoft Dynamics CRM for Outlook Configuration Wizard logging stopped: 10/10/2013 8:43:40 PM ===

*This post is locked for comments

I have the same question (0)
  • Satish Tiwari - CRM Profile Picture
    on at

    Hello John,

    Try below steps and let me know if it helps us in resolving this issue.

    1. Configuration may fail if any of the following conditions regarding the date or time on your computer is true:

    a.) The operating system date on the client computer is not set to the correct date.

    b). The operating system time on the client computer is not set to the correct time.

    c). The operating system time zone on the client computer is not set to the correct time zone.

    To resolve this issue, enter the correct time and date on your computer. To access the date and time settings on your computer, right-click on the date/time in the lower-right corner of your screen and then click Adjust date/time.

    OR

    Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as Administrator.

    At the command prompt, type the following text, and then press Enter:

    net time /set

    Then, type Y to finish the change:

    2. Click Start, click Control Panel, click Credential Manager, click Windows Credentials, and go to Generic Credential, hits on menu drop down, so 'Remove from vault' and delete all generic credentials one by one.

    Regards,

    Satish

     

  • JohnPPepper Profile Picture
    140 on at

    Hi Satish,

    The time, date, and timezone are correct.

    I tried removing all the Credential entries and retried with the same result.  

    Additionally, I uninstalled the client, removed the directory from Program Files and deleted the CRM reg tree below HKEY_Current_User\Software\Microsoft and HKEY_Local_Machine\Software\Microsoft, cleared browser cache, and deleted all temp files.

    I am getting a different error in the log file.  New log file:

    15:28:51|   Info| === Microsoft Dynamics CRM for Outlook Configuration Wizard logging started: 10/12/2013 3:28:51 PM ===

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize

    15:28:51|   Info| Client Configuration Wizard Version      : 6.0.0000.0809

    15:28:51|   Info| Client Configuration Wizard LanguageID   : 1033

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized

    15:28:51|   Info| Query all rows in profile table

    15:28:51|   Info| Outlook is  initialized

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized

    15:28:51|   Info| Client Configuration Wizard Running Mode : Normal

    15:28:51|   Info| Configuration file Type : OnPremise.

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile

    15:28:51|   Info| Logon mapi store

    15:28:51|   Info| Logon admin service

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds

    15:28:51|   Info| Query all rows in msg service table

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm

    15:28:51|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls

    15:28:51|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData

    15:28:56|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click

    15:28:56|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection

    15:28:56|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection

    15:28:56|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click

    15:29:18|   Info| Fill organization comboBox with server information.

    15:29:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection

    15:29:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection

    15:30:22|   Info| Fill organization comboBox with server information.

    15:30:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    15:30:24|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    15:30:26|  Error| Exception : Object reference not set to an instance of an object.    at Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo(String redirectEndpoint, String partner, String policy, String& postData)

      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.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)

      at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()

      at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)

      at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()

      at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)

      at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

  • Satish Tiwari - CRM Profile Picture
    on at

    Can you please verify this from another system and see if you are facing the same issue or not?

    Does it happen with one or multiple users?

    Regards,

    Satish

  • JohnPPepper Profile Picture
    140 on at

    I can successfully install and configure the Outlook addin on another computer with same O/S and Office versions.  

    There is only one ID at the moment since this is a new trial of CRM 2013.  I can try creating a 2nd ID and see if I get the same error on the problem computer.

    I did delete the local account and recreate it to see if it might resolve the issue.  It did not.  Same error:

    11:50:26|  Error| Exception : Object reference not set to an instance of an object.    at Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo(String redirectEndpoint, String partner, String policy, String& postData)

      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.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)

      at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()

      at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)

      at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()

      at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)

      at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

    It would be helpful to know what local software interacts with Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo.

  • JohnPPepper Profile Picture
    140 on at

    I created a 2nd ID in the CRM org.  The same error occurs with the new ID on the same computer.

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    Microsoft Online Services Sign-in Assistant is responsible for configuring CRM Online Organization with Outlook which is Microsoft.Crm.Passport.IdCrl.OnlineServicesFederationLogOnManager.GetBrowserClientAuthInfo

    Try repairing or uninstalling and re-installing Microsoft Online Services Sign-in Assistant from control panel. You can download latest version of Microsoft Online Services Sign-in Assistant from

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

    If above steps didn't worked then follow below steps:

    1. Uninstall Microsoft Dynamics CRM 2013 for Outlook.

    2. Delete MSCRM folder from C:\Users\Your username\AppData\local\Microsoft\MSCRM

    3. Start > Run > regedit > File > Export and take a backup of the registry.

    4. HKEY_CURRENT_USER>>Software>>Microsoft>>MSCRM > Right-clicked MSCRM registry key > Delete keys named as MSRM

    5. HKEY_LOCAL_MACHINE>>Software>>Microsoft>>MSCRM >Right-clicked MSCRM registry key > Delete keys named as MSRM

    6. Click on HKEY_USER>>Software>>Microsoft>>MSCRM > Right-clicked MSCRM registry key > Delete keys named as MSRM

    7.  Download and install Microsoft Dynamics CRM 2013 for Microsoft Office Outlook (Outlook Client) from www.microsoft.com/.../details.aspx

    8. Open configuration wizard and try to configure CRM 2013 with outlook if it fails using CRM Online in Server URL then please try to enter complete URL of CRM Organization

    Note: Make sure all Microsoft windows updates are installed on problem machine before configuring the CRM 2013 with Outlook.

    Regards,

    Satish

  • Harold van de Kamp Profile Picture
    215 on at

    Our CRM Online environment has been upgraded to the Fall 2013 CRM Release.

    We are facing exact the same "Object reference not set to an instance of an object" issue for several PC's :

    The PC's are running Office Professional Plus (Office 2013 32-bit). They had the Microsoft Dynamics CRM 2011 for Microsoft Outlook (Outlook) client installed. We uninstalled the Microsoft Dynamics CRM 2011 for Microsoft Outlook (Outlook) client and installed the Microsoft Dynamics CRM 2013 for Microsoft Outlook (Outlook) client.

    There are two versions of the Microsoft Online Services Sign-in Assistant:

    I'm using version 7.250.4551.0, because it is required for other Office 365 services. Which version of the Microsoft Online Services Sign-in Assistant is supported in combination with the Microsoft Dynamics CRM 2013 for Microsoft Outlook (Outlook) client?

  • Verified answer
    citriusjohn Profile Picture
    25 on at

    I've had several desktops (as in all of them) that had one issue or another upgrading to CRM 2013 for Outlook.  The version of Microsoft Online Services Sign-In Assistant that I have installed and working is:  7.250.4303.0.

    In most cases, I had to:

    Uninstall CRM 2011 for Outlook,

    Delete MSCRM AppData folders (social.technet.microsoft.com/.../11752.dynamics-crm-2011-outlook-client-uninstall.aspx),

    Delete Microsoft Dynamics CRM folder in Program Files (and Program Files x86),

    Delete MSCRM and MSCRMClient registry keys in Software\Microsoft\ under these trees: HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, and HKEY_USERS\(all users),

    Delete contents of %temp%

    Not sure if this is still relevant to this version but was in the last:

    Uninstall Live Essentials (if installed)

    One PC has a conflict with SQL Server Compact and only worked after uninstalling it an allowing the CRM for Outlook setup to install the version it wanted.

    I hope this helps...

  • JohnPPepper Profile Picture
    140 on at

    You can also try repairing Office Pro Plus.

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