I am trying to create a folder using ASP.Net C# coding, It is showing an error message System.UnauthorizedAccessException: Access to the path 'TestName' is denied.

When I check the folder right click -> Properties, it's having a black dot on Read-only Attribute

Folder Properties

I remove that black dot and make it empty check box, then apply and ok. And again when I open properties, again I can see that black dot

When I google it, I found Microsoft article. I do it as it is, but no use. still same

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.