"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.

Windows development | Internet Information Services
Microsoft 365 and Office | Development | Microsoft 365 Publishing
Developer technologies | .NET | Other
{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.