Copied to clipboard

Flag this post as spam?

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


  • Jonathan Roberts 409 posts 1063 karma points
    Oct 24, 2016 @ 10:43
    Jonathan Roberts
    0

    Archetype GetByGuid 500 Internal Server Error

    Hi, I have just upgraded from Umbraco 7.4.3 to 7.5.4 and I am getting a 500 internal server error when I try to edit my Archetype blocks. Can anyone help?

    Jon

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 24, 2016 @ 12:03
    Dave Woestenborghs
    0

    Hi Jonathan,

    This seems to be due to a non-reported "breaking change" in Umbraco Core. Since 7.5.4 it ships with a newer version of Automapper.

    This will breaks packages that make use of Automapper.

    You can see that archetype makes use of automapper : https://github.com/kgiszewski/Archetype/blob/master/app/Umbraco/Umbraco.Archetype/Api/ArchetypeDataTypeController.cs

    It also breaks this package of mine on 7.5.4 : https://our.umbraco.org/projects/backoffice-extensions/loadbalancing-information-dashboard/

    Maybe you can report here that it also breaks archetype : http://issues.umbraco.org/issue/U4-8984

    Dave

  • Jonathan Roberts 409 posts 1063 karma points
    Oct 24, 2016 @ 12:08
    Jonathan Roberts
    0

    Hi, thanks for your update - is there anything I can do to get this working?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 24, 2016 @ 12:10
    Dave Woestenborghs
    0

    It seems a a assemblyBinding can fix it

    https://twitter.com/mikkelhm/status/790523705566822400

    Dave

  • Jonathan Roberts 409 posts 1063 karma points
    Oct 24, 2016 @ 12:31
    Jonathan Roberts
    101

    I added the following to my webconfig and this fixed the issue:

      <dependentAssembly>
        <assemblyIdentity name="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
      </dependentAssembly>
    
  • Jamie Attwood 210 posts 507 karma points c-trib
    Nov 17, 2016 @ 15:44
    Jamie Attwood
    0

    Had the exact same issue. After upgrading to 7.5.4, Archetype would not display in the content editor and would throw an error "unable to load data type". Upgraded to the latest version of Archetype to no avail. Finally traced down throught the scripts errors to this 500 message. Adding the assembly redirect (above) fixed the issue. However this is going to cause a lot of headaches in the future as more and more people switch over...

    Thanks,

    jamie

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies