Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 12 posts 98 karma points
    Jan 29, 2019 @ 23:41
    Matt
    0

    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)

  • Erik Eelman 79 posts 319 karma points
    Jan 30, 2019 @ 11:34
    Erik Eelman
    0

    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:

    <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
      </dependentAssembly>
    
Please Sign in or register to post replies

Write your reply to:

Draft