RSS Amplifier

Simon Morgan · Nov 13, 2020

ASP.NET Web Forms web site assembly definition errors

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

I have the unfortunate task of having to work with an ASP.NET Web Forms web site and have frequently had to deal with errors like the following: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:…

I have the unfortunate task of having to work with an ASP.NET Web Forms web site and have frequently had to deal with errors like the following:

Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

This usually happens when switching from one branch to another in Git. Copying the correct assembly into the Bin directory didn’t help because it would just get replaced on build.

Read on /blog/asp-net-refresh-assemblies/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.