Publish Exception Umbraco Could not load Newtonsoft.Json Version10.0.0.0
I get an error being thrown when trying to publish any page after installing Tinifier. Not liking my version of Newtonsoft.Json 6.0.0.0, can I use an earlier version of Tinifier that would be compatible with Umbraco 7.5.9?
Versions are as follows...
Umbraco 7.5.9
Tinifier 1.6
An error occured
Could not load file or assembly 'Newtonsoft.Json, Version=10.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)
[DEFAULTDIALOGSEXCEPTIONDETAIL]
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.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)
[DEFAULTDIALOGSSTACKTRACE]
at Tinifier.Core.Application.UmbracoStartup.ContentServiceSaving(IContentService sender, SaveEventArgs1 e)
at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler2 eventHandler, TArgs args, TSender sender)
at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents)
at Umbraco.Core.Services.ContentService.Umbraco.Core.Services.IContentServiceOperations.SaveAndPublish(IContent content, Int32 userId, Boolean raiseEvents)
at Umbraco.Core.Services.ContentService.SaveAndPublishWithStatus(IContent content, Int32 userId, Boolean raiseEvents)
at Umbraco.Web.Editors.ContentController.PostSave(ContentItemSave contentItem)
at lambdamethod(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass10.9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
Did you try updating to the newer version of Newtonsoft JSON in your project? You can check in the /bin folder which version of the assembly is being used.
You can also check in the web.config the see if the binding redirect is correct:
Publish Exception Umbraco Could not load Newtonsoft.Json Version10.0.0.0
I get an error being thrown when trying to publish any page after installing Tinifier. Not liking my version of Newtonsoft.Json 6.0.0.0, can I use an earlier version of Tinifier that would be compatible with Umbraco 7.5.9?
Versions are as follows... Umbraco 7.5.9 Tinifier 1.6
An error occured Could not load file or assembly 'Newtonsoft.Json, Version=10.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)
[DEFAULTDIALOGSEXCEPTIONDETAIL] System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.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) [DEFAULTDIALOGSSTACKTRACE] at Tinifier.Core.Application.UmbracoStartup.ContentServiceSaving(IContentService sender, SaveEventArgs
1 e) at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler
2 eventHandler, TArgs args, TSender sender) at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents) at Umbraco.Core.Services.ContentService.Umbraco.Core.Services.IContentServiceOperations.SaveAndPublish(IContent content, Int32 userId, Boolean raiseEvents) at Umbraco.Core.Services.ContentService.SaveAndPublishWithStatus(IContent content, Int32 userId, Boolean raiseEvents) at Umbraco.Web.Editors.ContentController.PostSave(ContentItemSave contentItem) at lambdamethod(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass10.9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)Did you try updating to the newer version of Newtonsoft JSON in your project? You can check in the /bin folder which version of the assembly is being used.
You can also check in the web.config the see if the binding redirect is correct:
is working on a reply...