Copied to clipboard

Flag this post as spam?

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


  • Hardy Wang 91 posts 112 karma points
    Apr 20, 2012 @ 21:55
    Hardy Wang
    0

    Package installation gives error message

     

    Umbraco Courier Installer encountered some errors

    Created db table

    /umbraco/config/create/ui.xml could not be updated + 

    System.UnauthorizedAccessException: Access to the path 'D:\Data\wwwroot\mysite\umbraco\config\create\ui.xml' is denied. 

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 

    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) 

    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 

    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 

    at System.Xml.XmlDocument.Save(String filename) at Umbraco.Courier.UI.Usercontrols.Installer.Page_Load(Object sender, EventArgs e)

     

    Added dashboard to Courier application

    English language file could not be updated + 

    System.UnauthorizedAccessException: Access to the path 'D:\Data\wwwroot\mysite\umbraco\config\lang\en.xml' is denied. 

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 

    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) 

    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 

    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 

    at System.Xml.XmlDocument.Save(String filename) at Umbraco.Courier.UI.Usercontrols.Installer.Page_Load(Object sender, EventArgs e)

    I checked, there is no folder under "config" named "create" and "lang" at all. I also verified IIS_IUSERS has modify/read/write permissions of "config" folder, don;t understand why it still throws permission error.

    If I ignore it and refresh the page, the Courier icon shows up. But if I try to create a revision I got "The create dialog for "revisions" does not match anything defined in the "~/umbraco/config/create/UI.xml". This could mean an incorrectly installed package or a corrupt UI file" error message. From one of my local Umbraco (running in IIS Express 7) with Courier installed, I don't see such a folder or file at all. Is it just a temp file?

     

  • Nikola Petkovic 64 posts 63 karma points
    Apr 25, 2012 @ 12:24
    Nikola Petkovic
    0

    Hi Hardy,

    IIS_IUSERS should not have Modify and Write permissions.

    Instead, you have to make sure appool user has those permissions.

    If you are running Umbraco under IIS7, most likely you will have a special apppool for your IIS application and user identity tied to that apppool.

    To allow the iisapppool user identity right permissions for those folders try running:

    icacls umbraco /grant "IIS APPPOOL\{YOUR_APPPOOL_USERIDENTITY}":(OI)(CI)M

    from command prompt.

    You can find more info here: http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line

    Hope it helps

  • Hardy Wang 91 posts 112 karma points
    Apr 25, 2012 @ 22:24
    Hardy Wang
    0

    Hi Nicola, you are right. The permission setting was not right. I have updated that Wiki page accordingly.

Please Sign in or register to post replies

Write your reply to:

Draft