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?
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.
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,
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
is working on a reply...
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.