madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 251 forks source link

Could not load file or assembly Newtonsoft.Json #1982

Open enihcam opened 8 years ago

enihcam commented 8 years ago

12/24/2015 5:44:07 PM: An exception was thrown when running solution-wide compilers: System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for 'MadsKristensen.EditorExtensions.Settings.WESettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ConfOxide.MemberAccess.TypeAccessor1' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. at ConfOxide.MemberAccess.TypedPropertyAccessor2.GetJsonName(PropertyInfo property) at ConfOxide.MemberAccess.TypedPropertyAccessor2..ctor(PropertyInfo property) at ConfOxide.MemberAccess.NestedPropertyAccessor2..ctor(PropertyInfo property)

Which folder shall I put 'Newtonsoft.Json.dll' into?

GProulx commented 8 years ago

Hi!

Do you use the last version of WebEssentials 2013? Did you receive this error message while compiling?

You should not have to copy Json.net dll anywhere. It supposes to be included into WebEssentials assembly.

chriswbarrett commented 8 years ago

Hi, I've got the same issue. Using VS 2013, latest version. If I open a .scss or .ts file then it will show an error saying an error has occurred, if I then try to edit the file VS crashes and has an option to debug with the cited exception