Copied to clipboard

Flag this post as spam?

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


  • Henning Andersson 8 posts 23 karma points
    Feb 18, 2013 @ 14:57
    Henning Andersson
    0

    Razor macros stopped working when installing .NET Framework 4.5

    Hi.

    I have an Umbraco 4.11.3 installation on Windows Server 2008 R2. This weekend when i downloaded and installed .NET Framework 4.5 to use it on another application in my IIS all my Razor macros stopped working on my website.

    Is this a known bug or have I missed something? Tried to google for it, but didn't find anything.

    As this was an Vmware server I just reverted the full server to the latest snapshot and the website were up again. But I would really like to be able to install framework 4.5.

    Thanks!
    /H.

  • Gustavo Castelo 14 posts 34 karma points
    Feb 18, 2013 @ 15:08
    Gustavo Castelo
    0

    Not sure if this can help but I had something similar a while ago:

    http://our.umbraco.org/forum/developers/razor/35128-umbraco-49-Why-html-is-always-rendered-as-encoded-html?p=0#comment128021

    Make sure you're using the WebHelper dll that comes in umbraco.

     

  • Andreas Iseli 150 posts 427 karma points
    Feb 18, 2013 @ 15:44
    Andreas Iseli
    0

    Try to set the assembly redirects in the web.config file to use the correct version. The application always prefers assemblies located in the GAC before them located in the apps bin folder.

    See here for more details about the assembly redirect binding:

    http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.71).aspx

Please Sign in or register to post replies

Write your reply to:

Draft