Copied to clipboard

Flag this post as spam?

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


  • Bruno Olsen 75 posts 316 karma points
    Jun 06, 2014 @ 10:40
    Bruno Olsen
    0

    Umbraco 7: Binary file errors detected

    Hi

    Was happy to see the release of the Umbraco 7 compatible version of Newsletter Studio :)

    Unfortunitely I stumpled into this error when I wanted to install it from the repository:

    Right under the usual "Binary files in the package!" box another box appeared:

    "Binary file errors detected

    This package contains .NET binary files that might not be compatible with this version of Umbraco. If you aren't sure what these errors mean or why they are listed please contact the package creator.

    Error report

    This package could not be verified for compatibility. An error occurred while loading a referenced assembly 'Newtonsoft.Json' see error log for full details."

    The log reported this:

    "2014-06-06 10:10:13,474 [19] ERROR Umbraco.Core.Packaging.PackageBinaryInspector - [Thread 38] An error occurred scanning package assemblies

    System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.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=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)

       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

       at System.Reflection.Assembly.ReflectionOnlyLoad(String assemblyString)

       at Umbraco.Core.Packaging.PackageBinaryInspector.PerformScan[T](String dllPath, String[]& errorReport)"

     

    Of course I didn't go ahead and install anyway ;)

    Umbraco version 7.1.1 assembly: 1.0.5211.22376

    Newsletter Studio Version: 2.0.0

    Any help would be much appreciated :)

     

    Added: Oh, perhabs I should mention that Umbraco was not upgraded from an earlier version. It's the same version as was originally installed - and no other packages has been installed

     

    Added: Just noticed something. When looking in the web.config I see this:

    < dependentAssembly>

            < assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />

            < bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />

          < /dependentAssembly>

    And the log says:

    Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
    So, does this mean earlier versions of Umbraco came with version 4.5.0.0 and Umbraco 7.1.1 comes with version 6.0.0.0, and therefore Newsletter Studio 2.0.0 is not compatible with Umbraco 7.1.1?
  • Markus Johansson 1912 posts 5759 karma points MVP c-trib
    Jun 09, 2014 @ 12:01
    Markus Johansson
    0

    Hi!

    So, you did run the installer? And what error message did you get while running the install?

    The Newtonsot.Json-dll should work independent of what verion that are used in Umbraco thanks to the "bindingRedirect" that you have in the web.config-file.

    When are you getting the errors now? All pages or just when using Newsletter Studio?

    // m 

  • Markus Johansson 1912 posts 5759 karma points MVP c-trib
    Jun 09, 2014 @ 12:03
    Markus Johansson
    100

    Sorry! Just saw your line "Of course I didn't go ahead and install anyway ;)" 

    Thats what you sould do :D Since the binding redirect will make it work - I don't know why the installer thinks that this will be a problem.

  • Bruno Olsen 75 posts 316 karma points
    Jun 10, 2014 @ 14:19
    Bruno Olsen
    0

    Hi Markus

    Ok, I've just ran the install, and ended up with an endless loop "Loading Newsletter Studio" at what I guess is the end of the install. After 10-12 of these re-loads, I hit the stop button on the browser, and tried to start setting it up and send a test. Things seem to work fine in spite of this odd behaviour :) Thanks :)

  • Markus Johansson 1912 posts 5759 karma points MVP c-trib
    Jun 10, 2014 @ 14:24
    Markus Johansson
    0

    Hi!

    Hmm. Strange! "It works on my machine" =D

    No but we have seen some issues but the errors are very random we have not managed to reproduce them. Great to hear that a reload solved your issues.

    // m

Please Sign in or register to post replies

Write your reply to:

Draft