Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

After migration to crm 2016 from crm 2013 getting an error.

(0) ShareShare
ReportReport
Posted on by

Hello All Experts,

I have come across the below error while running a console application which connects to the crm to fetch some data.

Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Error Details No InnerException Supplied

 


The console application works in crm 2013 sp1 perfectly but not on crm 2016 .

the system was migrated using staging server crm 2015.

can anyone suggest me to resolve this issue.

*This post is locked for comments

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Hi,

     on the machine where your console app runs without problems, can you open that folder? Do you see the files?

    7446.im.PNG

    If yes, just copy those files to the folder where your console app is stored on the 2016 server (you don't have to put those files in the same folder as on 2013.. just need to make them visible to your console app, so you can put in the same folder where your console app is stored)

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Hello Alex,

    How can i put the assembly in the location which you provided.?

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Are you running that console application directly on the CRM server? 

    You might try getting that missing dll from the old 2013 server - it would usually be in this folder:

    %Program Files%\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5

    Take the dlls you'll find there and put them next to your console "exe" file on the 2016 server (in the same folder as your console app)

  • Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Hi

    What .Net version you are using for the console application? Try with 4.5.2 or so.

    Please refer the following to install and enable it:

    www.simego.com/.../how-to-fix-could-not-load-file-or-assembly-microsoft-identitymodel-version-3-5-0-0

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Hello Gopalan,

    How will i decide which is correct version?

  • Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: After migration to crm 2016 from crm 2013 getting an error.

    Hi

    Install Microsoft.IdentityModel with the right version.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans