help! aspnet帐号权限问题

netspy 2002-02-03 11:16:19
当我用asp.net来向服务端某文本文件写入数据时出现了这些东西
The ASP.NET process is not authorized to access the requested resource.
For security reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider
granting access rights to the resource to the ASP.NET process identity.


To grant ASP.NET write access to a file, right-click the file in
Explorer, choose "Properties" and select the Security tab. Click "Add"
to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account,
and check the Write box in the Allow column.

说为了安全,默认不给aspnet帐号写入文件的权限。
我照提示那样做但是找不到什么Security tab。
试过把aspnet帐号提高到管理员组也不行
把本虚拟目录设为可写,亦不行。

在bate2版本没有这个问题的。help
...全文
152 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
netspy 2002-02-17
  • 打赏
  • 举报
回复
我的就是NTFS分区啊,也没有的
cndragon 2002-02-07
  • 打赏
  • 举报
回复
NTFS分区才能设置目录权限,如果你是FAT或FAT32分区当然没有Security选项卡
netspy 2002-02-05
  • 打赏
  • 举报
回复
非常谢谢acptvb阁下的回答!
但我的Security选项卡里并没有可以增加帐号权限的选项,我的系统是xp professional
是否象前面jackyhx兄说的那样:"写入权限在NT server上才能设置,你如果是Professional的版本就没办法设置的。 "呢?

谢谢^_^

acptvb 2002-02-04
  • 打赏
  • 举报
回复
感谢您使用微软产品。

基于对安全性的考虑,.NET Framework version 1对以前Beta版的某些安全性实现进行了改动。具体内容您可以参考以下文档:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/V1securitychanges.asp?frame=true

该文档中的以下一段信息讲述了您所遇到的情况:
Process Identity in ASP.NET
In its default installation on Microsoft Windows® 2000 and Microsoft Windows XP, ASP.NET runs Web application code in a worker process. The identity of this process defaults to an unprivileged local account called the ASPNET account.
In Beta releases of ASP.NET, the process identity was System, a powerful administrative account with many privileges on the computer. To provide a less-privileged default installation, the weaker account is now used. This account is suitable for use in many Web applications.

您所看到的错误信息中所提到的Security tab指的是在Windows Explorer(资源管理器)中右击文件所在的目录,然后再选择Properties, 在弹出的Properties对话框中的Security选项卡。您可以将ASPNET的Write权限加入其中。


- 微软全球技术中心 VB技术支持

立即参加微软认证的“最有价值专家”评选,赢取价值万元以上的丰富奖品!详情参见(http://www.csdn.net/expert/Topic/456/456919.shtm)

本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
liyin_first 2002-02-04
  • 打赏
  • 举报
回复
up一下
龙腾九霄 2002-02-04
  • 打赏
  • 举报
回复
这个写入权限在NT server上才能设置,你如果是Professional的版本就没办法设置的。

62,243

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧