简体   繁体   English

无法加载文件或程序集 'Microsoft.Xrm.Sdk,版本 = 9.0.0.0

[英]Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0

I'm doing the automation with CRM.我正在使用 CRM 进行自动化。 Im getting the below error.我收到以下错误。 I have reinstalled all the nuget packages, deleted all the dlls from bin and re-built the code still remain same.我已经重新安装了所有 nuget 软件包,从 bin 中删除了所有 dll 并重新构建代码仍然保持不变。

Can you please guide where are we doing wrong.您能否指导我们在哪里做错了。

<package id="Microsoft.CrmSdk.CoreAssemblies" version="8.1.0.2" targetFramework="net46" />
<package id="Microsoft.CrmSdk.CoreAssemblies" version="8.2.0.1" targetFramework="net46" />

Message: Unit Test Adapter threw exception: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.消息:单元测试适配器抛出异常:无法加载文件或程序集“Microsoft.Xrm.Sdk,版本=9.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. (HRESULT 异常:0x80131040)无法加载文件或程序集“Microsoft.Xrm.Sdk,版本=8.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040). (来自 HRESULT 的异常:0x80131040)。

when i try to update the coreAssemblies当我尝试更新 coreAssemblies 在此处输入图像描述

Note: The Project and solutions are downloaded by source control which checked-in and running setup.注意:项目和解决方案由签入和运行设置的源代码管理下载。 I'm trying setup the my environment我正在尝试设置我的环境

We found the solution for the given problem.我们找到了给定问题的解决方案。 Need to change version in dependent assembly tag in app.config file.we have to change in each project where the assembly has been referred.需要在 app.config 文件中更改依赖程序集标记中的版本。我们必须在引用程序集的每个项目中进行更改。 please find the screenshot for your reference.请找到屏幕截图供您参考。

<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />

[![enter image description here][1]][1]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集&#39;Microsoft.VisualStudio.DebuggerVisualizers,Version = 9.0.0.0, - Could not load file or assembly 'Microsoft.VisualStudio.DebuggerVisualizers, Version=9.0.0.0, CRM 2011:插件-无法加载文件或程序集“ Microsoft.Xrm.Client” - CRM 2011: Plug-in - Could not load file or assembly 'Microsoft.Xrm.Client' 2017服务器中无法加载文件或程序集Microsoft.SqlServer.management.sdk.sfc版本11.0.0.0 - Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 in 2017 server 项目Runnig错误无法加载文件或程序集&#39;Microsoft.SqlServer.Management.SDK.SqlStudio,版本= 14.0.0.0 - Project Runnig error Could not load file or assembly 'Microsoft.SqlServer.Management.SDK.SqlStudio, Version=14.0.0.0 无法加载文件或程序集“Newtonsoft.Json,Version=9.0.0.0,Culture=neutral,PublicKeyToken=30ad4fe6b2a6aeed”或其依赖项之一 - Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies 无法加载文件或程序集Microsoft.ReportViewer.ProcessingObjectModel,版本= 13.0.0.0 - Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel, Version=13.0.0.0 无法加载文件或程序集 &#39;Microsoft.SqlServer.Types,版本 = 11.0.0.0 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0 无法加载文件或程序集 Microsoft.VisualStudio.Shell,版本 = 2.0.0.0 - Could not load file or assembly Microsoft.VisualStudio.Shell, Version=2.0.0.0 无法加载文件或程序集“Microsoft.mshtml,版本=7.0.3300.0 - Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0 无法加载文件或程序集&#39;Microsoft.SqlServer.Smo,版本= 10.0.0 - Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=10.0.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM