I updated Visual Studio with update 4 before updating all packages via NuGet. Now when I try to run my website I get this error:
An exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll but was not handled in user code
Additional information: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.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)
After checking the error list I saw this warning:
Warning 14 Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets 1697 5 Project
After setting verbosity setting to Detailed I got this (and some more considered .... text:
1> Could not resolve this reference. Could not locate the assembly "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1> For SearchPath "projectfolder\bin".
1> Considered "projectfolder\bin\log4net.winmd", but it didn't exist.
1> Considered "projectfolder\bin\log4net.dll", but it didn't exist.
1> Considered "projectfolder\bin\log4net.exe", but it didn't exist.
There is indeed no log4net files or whatsoever. I guess something is using this assembly? Is there a way to auto detect assembly issues and fix them? Because this is way to technical for me.
What I think is weird is that my newsoft.json reference indicates a Version 4.5.0 and the error states it needs a 6.0.0.0 and my package.config says it contains a 6.0.8 version.
I particularly have the JSON issue.