MS Dynamics 2011:无法加载文件或程序集“Microsoft.Crm,Version=5.0.0.0,

MS Dynamics 2011:无法加载文件或程序集“Microsoft.Crm,Version=5.0.0.0,

我们最近设置了带有 Exchange 2010 的 Windows 2008 R2 服务器。

现在,我们的一位管理员也被建议在该服务器上安装 MS Dynamics 2011。

它似乎有效,因为我们可以访问 CRM 内容。但我们的智能手机 (iphone) 和 Mac 电子邮件客户端无法访问https://服务器/owa因为发生了 500 错误,内部服务器错误。

查看事件日志后,我们发现:

Event code: 3008 
Event message: A configuration error has occurred. 
Event time: 04.04.2012 09:01:27 
Event time (UTC): 04.04.2012 07:01:27 
Event ID: 9cf5f5e4b1cc4b088de4c88e9b8d369b 
Event sequence: 1 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1/ROOT/EWS-7-129779964874694509 
    Trust level: Full 
    Application Virtual Path: /EWS 
    Application Path: C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\exchweb\EWS\ 
    Machine name: WIN-1VCFHUAVVGT 

Process information: 
    Process ID: 7324 
    Process name: w3wp.exe 
    Account name: NT-AUTORITÄT\SYSTEM 

Exception information: 
    Exception type: ConfigurationErrorsException 
    Exception message: Could not load file or assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Could not load file or assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)



Request information: 
    Request URL: https://192.168.0.1:443/EWS/Exchange.asmx 
    Request path: /EWS/Exchange.asmx 
    User host address: 192.168.0.3 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT-AUTORITÄT\SYSTEM 

Thread information: 
    Thread ID: 11 
    Thread account name: NT-AUTORITÄT\SYSTEM 
    Is impersonating: False 
    Stack trace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)


Custom event details: 

我搜索了一下并发现了这一点:

http://nishantrana.wordpress.com/2011/01/20/could-not-load-file-or-assembly-microsoft-crm-version5-0-0-0-cultureneutral-publickeytoken31bf3856ad364e35-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified-or-deploying/我已经尝试过了,但是没有帮助。

对此有什么想法吗?

提前致谢!

答案1

这看起来像是尝试使用 Outlook Web Access 时出现的 CRM 错误。

根据下面的链接,当在同一台服务器上安装 CRM 和 Exchange 时,您必须更改 CRM 使用的端口号,否则它将覆盖 Exchange 为 OWA 所需的默认网站设置。该链接还非常详细地介绍了如何在同一台机器上使两者一起工作。

来源:http://www.interactivewebs.com/blog/index.php/server-tips/microsoft-crm-2011-how-to-configure-ifd-hosted-setup/

您需要调整 IIS 设置,以便将安全端口指回 Exchange。

祝你好运!

答案2

我认为你可能需要一个:

  1. 为 CRM 和 Exchange 设置单独的 DNS,并使用单独的端口(这应该已经在 IIS 中)。
  2. 请查看谁从服务启动 CRM / Exchange 流程。
  3. 由于 CRM 实例未按应有方式配置,因此不允许加载 Exchange 的 OWA 部分(也在 IIS 上)。
  4. “无法加载文件或程序集‘Microsoft.Crm,Version=5.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35’或它的某一个依赖项”,并且在我当前的德语水平下,“无法找到系统所对应的数据” - 系统找不到指定的文件 - 这看起来像是 CRM 错误或者可能是 MSSQL?

相关内容