"Unable to add or delete the folders, Access is denied".

Kurakula, Julia 26 Reputation points
2022-09-14T05:14:31.7+00:00

Getting the following error while publishing .NET code in VS 19, Error Image:

I enabled rewrite URL feature in IIS, I also allowed full permissions in the properties->security tab of the directory.
But when I try to unmark the read only, and click on apply for all the subfolders and then click save and ok, it reverts back to read only. I unticked it multiple times and saved, but it comes back to read only mode in the properties->general tab.
Im using windows 2016 IIS version and the visual studio is 2019 enterprise.

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,066 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
631 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oskar Shon 866 Reputation points
    2023-01-17T14:09:14.51+00:00

    I suggest you dispose all folders using code and close all using explorer (if those are using in your project) before compilation start.

    Regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.