locked
Cannot edit web.config with KUDU (erorr 409) RRS feed

  • Question

  • As for the title, when I try editing my web.config with kudu I always get this error

    ERROR

    409 Conflict: Could not write to local resource 'D:\home\site\wwwroot\web.config' due to error 'Access to the path is denied.'.

    But I really do not know how to solve it. It is a new App Service where I've deployed a simple asp.NET webapp and I do not know where I can give kudu permission to edit files.

    Gian Maria.

    ERROR

    409 Conflict: Could not write to local resource 'D:\home\site\wwwroot\web.config' due to error 'Access to the path is denied.'.

    ERROR

    409 Conflict: Could not write to local resource 'D:\home\site\wwwroot\web.config' due to error 'Access to the path is denied.'.

    ERROR

    409 Conflict: Could not write to local resource 'D:\home\site\wwwroot\web.config' due to error 'Access to the path is denied.'.

    Ricci Gian Maria. (http://www.codewrecks.com)

    Sunday, October 20, 2019 4:41 PM

All replies

  • Your question is not entirely clear but if I understand then probably you just need to start VS with Administrator privileges. If you only need to edit that one file then perhaps you can use another editor. If however your website is in D:\home\site\wwwroot then you probably must use Administrator privileges for the site. What I do is I have websites in other places that I only need to edit the main site occasionally for.

    Does that help?



    Sam Hobbs
    SimpleSamples.Info

    Sunday, October 20, 2019 5:04 PM
  • It has nothing to do with VS, I'm trying editing the file with KUDU, the file is on azure web site.

    Gian MAria


    Ricci Gian Maria. (http://www.codewrecks.com)

    Monday, October 21, 2019 11:18 AM
  • Most likely you deployed your files through run from package which makes your folder as read only as Simple Samples said above. 

    So either you need to redeploy it through  or

    you check if you have a setting by name of WEBSITE_RUN_FROM_PACKAGE with a value 1?

    Once you change the value to 0 you should check if the site is poitning to D:\home\data\SitePackage or D:\home\site\wwwroot


    Rahber
    @Rahber

    • Proposed as answer by Rahber Monday, October 21, 2019 5:06 PM
    Monday, October 21, 2019 12:42 PM
  • THanks, indeed it was WEBSITE_RUN_FROM_PACKAGE, it has a value of 1.

    Thanks for the solution.


    Ricci Gian Maria. (http://www.codewrecks.com)

    Monday, October 21, 2019 4:04 PM