如何允许写入服务器ASP.net上的文件(How to allow writing to a file on the server ASP.net)

编程入门 行业动态 更新时间:2024-10-26 07:26:02
如何允许写入服务器ASP.net上的文件(How to allow writing to a file on the server ASP.net)

所以我的文件位于网站文件夹结构的文件夹中。 我用它来记录错误。

它从Visual Studio运行时有效。

我理解这个问题。 我需要在inetpub上设置权限。 但对于什么用户? 如何?

我尝试添加一些IIS用户,但它仍然无法写入该文件。

所以我使用ASP.net Framework 3.5 SP1 Server是Windows Server 2003企业版SP2

我应该如何设置权限,以便写入工作?

谢谢

So I have file that is in folder in website folder structure. I use it to log errors.

It works when ran from Visual Studio.

I understand the problem. I need to set permissions on inetpub. But for what user ? and how?

I tried adding some IIS user but it still can not write to the file.

So I am using ASP.net Framework 3.5 SP1 Server is Windows Server 2003 enterprise edition SP2

How should I set up permissions so write would work?

Thanks

最满意答案

您需要授予网络服务帐户修改权限。 右键单击该文件夹,选择属性,转到“安全”选项卡,然后添加“网络服务”帐户(如果不存在)。 如果已列出,请确保已选中“修改”。

You need to give the Network Service account modify rights. Right click on the folder, choose properties, go to the Security tab and add the Network Service account if it's not there. If it is listed, ensure it had "Modify" checked.

更多推荐

SP,Visual,写入,inetpub,电脑培训,计算机培训,IT培训"/> <meta name="descript

本文发布于:2023-07-26 15:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1277564.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   文件   ASP   server   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!