Copied to clipboard

Flag this post as spam?

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


  • Chester Campbell 98 posts 209 karma points
    Jan 30, 2014 @ 23:40
    Chester Campbell
    0

    Open Calais v2.2.6 and Umbraco 6.1.6 - get Newtonsoft.json.dll error

    Hi,

    I wanted to try out your Open Calais Auto Tag package but I am getting an internal server error when I click the "Suggest Tags" button.

    I have a clean, new Umbraco v6.1.6 site with only one other package installed: Config Tree. I downloaded Auto Tags v2.2.6 from your Projects page and installed it. I edited the config file to include my Open Calais key, etc. I created a doc type and added a property to it using the Auto Tags data type.

    When I click on the "Suggest Tags" button I get the progress icon and nothing else ever happens. I launced Fiddler and it's showing me that the POST request to /base/AutoTags/GetTags/1047.aspx is getting this response:

        MESSAGE:
    Exception has been thrown by the target of an invocation.
    
    STACKTRACE:
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
    
    INNEREXCEPTION:
    System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.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)
    File name: 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
       at GrailTechnology.AutoTags.Library.Base.GetTags(Int32 id)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Also, I noticed that the package page in the Umbraco backend is reporting that my installed AutoTags version is v2.2.5 even though the zip I downloaded is labeled 2.2.5.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 31, 2014 @ 10:16
    Ismail Mayat
    0

    Chester,

    You could play with assembly bindings in the web.config a bit the version have for lucene.net with older versions of ucomponents see http://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/33021-Upgrading-to-Umbraco-48-breaks-support-for-uComponents you could try something similar?

    Regards

    Ismail

  • Chester Campbell 98 posts 209 karma points
    Jan 31, 2014 @ 17:36
    Chester Campbell
    0

    Thanks Ismail. I think that will work. I'll give it a try and report back.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 31, 2014 @ 17:38
    Ismail Mayat
    0

    Chester,

    Additionally you could pull down the source and rebuild with version of newtonsoft used by Umbraco.

    Regards

    Ismial

  • Chester Campbell 98 posts 209 karma points
    Jan 31, 2014 @ 18:54
    Chester Campbell
    0

    There are four Newtonsoft.Json v3.5 releases ... 3.5 release 5, release 6, release 7, and release 8 ... available for download. I tried all four and still get the "could not load file or assembly" error.

    At this point I would try downloading the Auto Tags source and doing my own build except that I can't locate it. Is the source available? The project page on our.umbraco.org doesn't mention it.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 31, 2014 @ 19:01
  • elspiko 133 posts 302 karma points
    Feb 03, 2014 @ 17:40
    elspiko
    0

    Hi all,

    Apologies for the problems you're having Chester, which version of the package have you installed? The newtonsoft dependency should have been fixed in version 2.2.6, so you could try that if you haven't already?

    Also, FYI the repo has been moved to https://bitbucket.org/justcompile/umbraco-autotags/. I thought I had changed the relevant links but I'll get onto that now.

    If you're having additional problems please let me know.

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft