Copied to clipboard

Flag this post as spam?

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


  • Anthony Thomas 4 posts 24 karma points
    Sep 23, 2013 @ 22:43
    Anthony Thomas
    0

    Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null'

    After trying to install and use this package I get the error message in the title. Has anyone else recieved this error and successfully resolved it?

  • Adrian Holland 29 posts 106 karma points
    Sep 23, 2013 @ 23:33
    Adrian Holland
    0

    Hi Anthony,

    Haven't seen this error myself. Which version of HunsSpellChecker are you trying to install - and on which Umbraco CMS platform version?

    log4net.dll has been bundled with Umbraco for a little while now - not sure since when exactly but if you are on 4.11 + it should be in your bin dir?

    Cheers,

    Adrian

  • Adrian Holland 29 posts 106 karma points
    Sep 23, 2013 @ 23:40
    Adrian Holland
    0

    http://our.umbraco.org/projects/developer-tools/log4net-for-umbraco might be of help if you are using and early version of Umbraco 4?

  • Anthony Thomas 4 posts 24 karma points
    Sep 25, 2013 @ 15:28
    Anthony Thomas
    0

    4.7.1 is the umbraco version and 0.2.0 was the hunspell version

    I tried finding and installing log4net manually and got a slightly different error. the same text as above but in the body explaining the issue the line

    The system cannot find the file specified.
    was replaced with
    The located assembly's manifest definition does not match the assembly reference.
    I wrote up the issue in more detail on stackoverflow: http://stackoverflow.com/questions/18968653/replacing-umbraco-tinymce-spellchecker-causing-log4net-issues
  • Anthony Thomas 4 posts 24 karma points
    Sep 25, 2013 @ 16:10
    Anthony Thomas
    0

    does hunspell specifically lookg for log4net 1.2.11.0? because the version I have(and the version you linked to) is 1.2.10.0

  • Adrian Holland 29 posts 106 karma points
    Sep 26, 2013 @ 00:23
    Adrian Holland
    0

    Hi Anthony,

    I guess its expecting version 1.2.11.0 as that's the version distributed with the later versions of Umbraco - and the one the plugin was built against.

    You could always try getting the 1.2.11.0 DLL from a later version of Umbraco and using that. I doubt there would be issues in compatibility with using the later version?

    Alternately you could try a binding redirect in the web.config file. e.g. I think you would need something like

      <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

          <dependentAssembly>

            <assemblyIdentity name="log4net" publicKeyToken="" />

            <bindingRedirect oldVersion="1.2.0.0-1.3.0.0" newVersion="1.2.10.0" />

          </dependentAssembly>

    (I used the free JetBrains DotPeek to find the publicKeyToken and it says its null - so I assume "" will do?)
    Cheers,
    Adrian
  • Adrian Holland 29 posts 106 karma points
    Sep 26, 2013 @ 00:26
    Adrian Holland
    0

    PS... can you please let me kow if either of these options work and I'll update the doco for the benefit of others..

  • Richard Barg 358 posts 532 karma points
    Mar 25, 2014 @ 21:29
    Richard Barg
    0

    @Adrian re: "I guess its expecting version 1.2.11.0 as that's the version distributed with the later versions of Umbraco - and the one the plugin was built against.

    You could always try getting the 1.2.11.0 DLL from a later version of Umbraco and using that. I doubt there would be issues in compatibility with using the later version?"

    System: Umbraco Version - 4.7.1 ,Windows Server 2008 – 8gb memory – 4 Zeon 2.27Ghz processors service pack 1 – 64 bit OS , IIS version 7.5.7600.16385, SQL Server 2008 R2, Stacktrace - N/A

    The above option crashed our development server. I'm not the developer, but that's the gist of what he told me. 1.2.11.0 is not compatible for a 4.71 environment.

    I will pass on the binding redirect suggestion. Do you have any other ideas?

  • Adrian Holland 29 posts 106 karma points
    Mar 26, 2014 @ 00:27
    Adrian Holland
    0

    Hi Richard,

    Ok, glad he tried the idea out on a development server :)

    I've updated the documentation to indicate that it supports 4.11+. and that older versions of Umbraco are not supported. (Probably not what you want to hear I know but upgrading is not necessarily a huge task - we've upgraded from 4.10, 4.11 - 6.1 over the past 12 months and plan to move to V7 later this year)

    Cheers,

    Adrian

Please Sign in or register to post replies

Write your reply to:

Draft