How we can add write access to a directory programmatically in C#?

后端 未结 2 1333
-上瘾入骨i
-上瘾入骨i 2021-01-13 15:21

I have an ASP.NET page that creates directories, and in another page I upload some files in these folders, but when I upload a file in a directory, the below error appears:<

2条回答
  •  自闭症患者
    2021-01-13 16:16

    if you are using iis6 you need to grant the aspnet user permissions to that folder. if you are using iis7 you need to grant the IIS_IUSRS user permissions to that folder.

提交回复
热议问题