Copied to clipboard

Flag this post as spam?

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


  • Hans Petter Evju 14 posts 103 karma points
    Sep 17, 2015 @ 08:28
    Hans Petter Evju
    0

    Site not working after changing DNS name

    I installed Umbraco via NuGet, then ran it from visual studio to set it up. It ran on http://localhost:44653/. After I was done setting it up, I sat upp IIS to run on the same folder, but this time using DNS umbracotest.testmaskin.com.

    No links seems to work. I get content on my front page, but stuff like http://umbracotest.testmaskin.com/css/fanoe.css goes to http://umbracotest.testmaskin.com/login.aspx?ReturnUrl=%2fcss%2ffanoe.css with a error:

    Page not found
    
    No umbraco document matches the url '/login.aspx?ReturnUrl=%2fcss%2ffanoe.css'.
    
    This page can be replaced with a custom 404. Check the documentation for "custom 404".
    
    This page is intentionally left ugly ;-)
    

    Also when I "view source" i find a link like this:

    <script type="text/javascript" src="http://localhost:44653/5a21e942a3214c27912d308d54317ad8/browserLink"
    

    What is wrong?

  • Hans Petter Evju 14 posts 103 karma points
    Sep 17, 2015 @ 13:53
    Hans Petter Evju
    101

    Error turned out to be file permissions. You need to give the IUSR read rights to the root folder

    I've used the script from here: https://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line

    And modified so it set ALL the required permissions and also creates any missing folders.

    $PhysicalPath = "C:\inetpub\wwwroot\Umbraco"
    $appPoolAccount = "IIS APPPOOL\{application-pool-name}"
    $readExecute = $appPoolAccount,"ReadAndExecute","ContainerInherit,ObjectInherit","None","Allow"
    $read = $appPoolAccount,"Read","ContainerInherit,ObjectInherit","None","Allow"
    $modify = $appPoolAccount,"Modify","ContainerInherit,ObjectInherit","None","Allow"
    $fileModify = $appPoolAccount,"Modify","Allow"
    $objects = @{}
    $objects[""] = $readExecute
    $objects["Web.config"] = $fileModify
    $objects["App_Code"] = $modify
    $objects["App_Data"] = $modify
    $objects["bin"] = $modify
    $objects["Config"] = $modify
    $objects["Css"] = $modify
    $objects["MacroScripts"] = $modify
    $objects["Masterpages"] = $modify
    $objects["Media"] = $modify
    $objects["Scripts"] = $modify
    $objects["Umbraco"] = $modify
    $objects["Umbraco_Client"] = $modify
    $objects["UserControls"] = $modify
    $objects["Views"] = $modify
    $objects["Xslt"] = $modify
    foreach($object in $objects.Keys){
        $path = Join-Path $PhysicalPath $object
        New-Item -ItemType Directory -Force -Path $path
        $acl = Get-ACL $path
        $rule = New-Object System.Security.AccessControl.FileSystemAccessRule($objects[$object])
        $acl.AddAccessRule($rule)
        Set-Acl $path $acl
        Get-Acl $path | Format-List
    }
    
    $read = "IUSR","Read","ContainerInherit,ObjectInherit","None","Allow"
    $acl = Get-ACL $PhysicalPath
    $rule = New-Object System.Security.AccessControl.FileSystemAccessRule($read)
    $acl.AddAccessRule($rule)
    Set-Acl $PhysicalPath $acl
    Get-Acl $PhysicalPath | Format-List
    
  • kleptbit 42 posts 98 karma points
    Oct 06, 2015 @ 19:29
    kleptbit
    0

    This error was my problem too, on deploying Umbraco 6.0.5 with uBlogsy 3.1 to the Windows 2012 server. It would work, and then bang, error. I spent all day reinstalling :( IIS_IUSERS was set to full control, but not IUSRS - haven't had to do that for ages?

    Page not found

    No umbraco document matches the url 'http://localhost:8031/login.aspx?ReturnUrl=/umbraco/umbraco.aspx'.

    This page can be replaced with a custom 404. Check the documentation for "custom 404".

    This page is intentionally left ugly ;-)

Please Sign in or register to post replies

Write your reply to:

Draft