Copied to clipboard

Flag this post as spam?

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


  • Damon 217 posts 288 karma points
    Jan 19, 2017 @ 11:35
    Damon
    0

    Converting a Umbraco website implementation to an Umbraco application in Visual Studio

    Hi,

    we have an existing Umbraco site. However, it was not built in a Visual Studio using nuget. It is simply a website using the web installer.

    I tried converting it to an application using using online resources to that explain how to convert a website to an application in Visual Studio (not relating to Umbraco though).

    It failed with this error when running: Attempt by security transparent method 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' failed.

    Has anyone tried to successfully do this? Is there anything specific that needs to be done here?

    Thanks a lot,

  • Amir Khan 1289 posts 2746 karma points
    Jan 19, 2017 @ 16:49
    Amir Khan
    1

    So this could be easy or not depending on the complexity of the website :)

    General outline is to do a clean install of Umbraco in VS that matches the version of the existing site, then merge in the custom parts of your site (re-install packages, views, javascript, css, etc) and point it to the original database.

    You can then update it with nuget and it should "just work". There's inevitably some challenges, but nothing crazy from my experience.

    -Amir

  • 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