Can't create a file in C:\\inetpub\\wwwroot programmatically

懵懂的女人 提交于 2019-12-06 06:31:04

You need to make sure the .NET user has write access by right-clicking on the directory, going to the security tab, and adding the appropriate user and checking the write checkbox.

Depending on your version of .NET/Windows/IIS this can be different, typically it is Network Service or IUSR. If you are running IIS7 make sure to check the Identity under advanced settings of the application pool, as that will be the user that needs the write access, again typically this is Network Service.

You need to grant the ASP.Net user write access to the directory.

just open your text editor( notepad or textpad or anything) using administrative previledges right click on .exe file and click run as administrator you will be able to do it now

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!