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.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.