简体   繁体   中英

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

I'm doing the automation with 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.

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. 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. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

when i try to update the 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. 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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM