Copied to clipboard

Flag this post as spam?

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


  • Richard Grantham 8 posts 28 karma points
    Oct 30, 2014 @ 17:03
    Richard Grantham
    0

    Umbraco 7 in Azure cloud as web roles

    I have been trying to get Umbraco working in a web role environment (web services) in Azure, but the site errors when you try and access it, saying that config/trees.config is not accessible.
    These are the steps i carried out:
    Creat a new empty MVC4 project in Visual Studio 2013
    Install Umbraco v7.1.8 from nuget
    Run up and configure using a new azure SQL database.
    Added in the umbraco folders to the solution.
    Added an azure web services project to the solution.
    Added the existing MVC umbraco project to the azure role profiles.
    Published to Azure staging area.
    The site starts up with the usual 'Looks like here is still work to do' screen in the full Azure emulator in visual studio with multiple role instances. However fails to run up when hosted in Azure.
    I am currently assuming that the issue is that the site root does not have write access when hosted in Azure, so the IIS worker process cannot write to the trees.config file.
    I found an article where you can add a 'startup.bat' file, with the following:
    echo "starting startup task" >> log.txt
    %windir%\system32\Icacls.exe .. \* /T /grant "Network Service":(F) > log.txt
    But this stops the role instances for starting up at all in both the emulator and when hosting in azure.
    Any ideas?
Please Sign in or register to post replies

Write your reply to:

Draft