aspx程序执行时怎样删除文件啊,把asp_net这个帐户设为Adimistrator它还说权限不够(System.UnauthorizedAccessException: Access to the p

yslhust 2003-08-28 05:02:54
高手帮帮忙啊!!!
...全文
63 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
llm2002 2003-09-03
  • 打赏
  • 举报
回复
将以下节添加到Web.Config中如下:
<system.web>
......
<identity impersonate="true" userName="yourComputerName\AdministratorAccount" password="yourpassword" />
</system.web>
srxgs 2003-09-02
  • 打赏
  • 举报
回复
to llm2002():
acewang(**^o^**) 所说的其实是.NET FRAMEWORK的错误提示,可是我没有搞懂。
怎么用模拟帐号模拟管理员的帐号,具体操作方法能否告知。
llm2002 2003-09-02
  • 打赏
  • 举报
回复
应该象acewang(**^o^**) 说的那样用个模拟帐号模拟管理员的帐号就可以了.
我以前在Windows 2003 Server有碰到这种问题,也是这样解决的.
srxgs 2003-09-02
  • 打赏
  • 举报
回复
我也碰到IIS6+.net2003时的此情况,
微软的解释不太对,我按照楼上两位的说法设置,还不行,需要重新启动吗?
luckycrazy 2003-08-28
  • 打赏
  • 举报
回复
将文件所在文件夹的安全属性中的network service用户的权限设好就行了
acewang 2003-08-28
  • 打赏
  • 举报
回复
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

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
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
Lancer903 2003-08-28
  • 打赏
  • 举报
回复
你现在用asp.net访问文件夹时使用的不是asp_net用户而是使用一个匿名用户。
你可以在你的iis里面设定用户!

62,041

社区成员

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

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

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

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