在Microsoft Dynamics CRM配置向导的加载 Outlook 配置文件部分期间发生错误

本文提供了在“Microsoft Dynamics CRM配置向导”加载 Outlook 配置文件部分时可能收到错误消息的问题的解决方案。

适用范围:Microsoft Dynamics CRM 2011
原始 KB 编号: 2538692

症状

配置 Microsoft Dynamics CRM 2011 Outlook 客户端时,在输入用户的 Windows Live ID 后以及配置向导的“加载 Outlook 配置文件”部分期间发生错误。

在Crm50ClientConfig.log中,发生以下错误:

错误|异常:在 Microsoft.Interop.Mapi.CRcwMsgServiceAdmin.CreateMsgServiceEx (String ServiceName、String DisplayName、IntPtr UIParam、IMsgServiceAdmin_CreateMsgService_Flags Flags)
at Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.InstallCrmDatastore (Guid organizationId、Guid userId、String serverUrl、String organizationName、String displayName)
at Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.Configure (IProgressEventHandler progressEventHandler)
at Microsoft.Crm.Application.Outlook.Config.ConfigEngine.Configure (Object stateInfo)

Crm50ClientConfig.log位于以下目录中:

  • Windows7/2008

    %userprofile%\AppData\Local\Microsoft\MSCRM\Logs

  • WindowsXP/2003

    %userprofile%\Local Settings\Application Data\MSCRM\Logs

原因

如果满足以下任一条件,则可能会出现上述错误:

原因 1:

MAPISVC.inf 文件不存在于正确的位置。

原因 2:

Microsoft Dynamics CRM服务未注册到 MAPISVC.inf 文件

解决方案

解决方案 1:

  1. MAPISVC.inf 文件的位置取决于 Windows 和 Outlook 的体系结构类型。 下面是 MAPISVC.inf 文件应基于 Windows 和 Outlook 的体系结构类型存在的位置。

    32 位或 x86 版本的 Windows 和 Outlook:
    C:\Windows\System32\mapisvc.inf
    C:\Program Files\Common Files\System\MSMAPI\1033\mapisvc.inf

    64 位或 x64 版本的 Windows 和 Outlook:
    C:\Program Files\Common Files\System\MSMAPI\1033\mapisvc.inf
    C:\windows\SysWOW64\mapisvc.inf

    具有 64 位或 x64 版本的 Windows 的 32 位或 x86 版本的 Outlook:
    C:\Program Files (x86)\Common Files\System\MSMAPI\1033\mapisvc.inf
    C:\windows\SysWOW64\mapisvc.inf

  2. 如果 MAPISVC.inf 文件不存在于以下任何位置,请尝试在 UserProfile 中查找它:

    Windows7/2008
    %userprofile%\AppData\Local\Microsoft\Outlook

    WindowsXP/2003
    %userprofile%\Local Settings\Application Data\Microsoft\Outlook

  3. 如果 USERProfile 中存在 MAPISVC.inf 文件,请根据 Windows 和 Outlook 的体系结构类型将其复制到适当的目录。

  4. 如果不确定用于 Windows 或 Outlook 的体系结构类型,请使用以下步骤:

    Windows:

    1. 选择“Windows/开始”按钮。

    2. 转到 “程序>附件”。

    3. 在命令提示符上 Right-Click 并选择“ 以管理员身份运行”。

    4. 运行以下命令:

      reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /V PROCESSOR_ARCHITECTURE

    如果返回以下结果,则表示操作系统是 64 位操作系统:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
    PROCESSOR_ARCHITECTURE REG_SZ AMD64

    如果返回以下结果,则表示操作系统是 32 位操作系统:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
    PROCESSOR_ARCHITECTURE REG_SZ x86

    如果 Windows 是 32 位操作系统,则 Outlook 将是 32 位应用程序。 但是,如果 Windows 是 64 位操作系统,则 Outlook 可以是 32 位应用程序或 64 位应用程序。 仅支持 Outlook 2003 和 Outlook 2007 作为 32 位应用程序。 但是,Outlook 2010 具有两种体系结构类型:

    若要确定 Outlook 2010 的版本,请使用以下步骤:

    1. 选择“Windows/开始”按钮。

    2. 转到 “程序>附件”。

    3. 在命令提示符上 Right-Click 并选择“ 以管理员身份运行”。

    4. 基于 Office 版本运行以下命令:

      reg query "HKLM\Software\Microsoft\Office\14.0\Outlook" /V Bitness

解决方案 2:

如果Microsoft Dynamics CRM服务未注册到 MAPISVC.inf 文件,我们可以手动将这些条目添加到 MAPISVC.inf 文件,并将它们放在适当的位置。

若要解决此问题,请联系Microsoft Dynamics CRM支持人员寻求帮助。

更多信息

检查问题是否已修复。 如果问题已修复,您不用再往下看了。 如果问题未修复,可以联系Microsoft 支持部门