访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))? [英] Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))?

查看:3299
本文介绍了访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我上载了我的网站在线。我用可爱的FTP上传网站。
网上上传网站时,我用它给这样的错误的网址运行站点之后

When i uploaded the my website online. i Upload the site using cute ftp. after uploading the site online when i run the site using the url it is giving the error like this

访问被拒绝。 (异常来自
  HRESULT:0X80070005(E_ACCESSDENIED))
  说明:未处理的异常
  的执行过程中发生
  当前Web请求。请检查
  堆栈跟踪有关的详细信息
  该错误以及它起源于
  在code。

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

异常详细信息:
  System.UnauthorizedAccessException的:
  访问被拒绝。 (异常来自
  HRESULT:0X80070005(E_ACCESSDENIED))

Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET未被授权的访问
  所请求的资源。考虑
  授予访问权限的资源
  到ASP.NET请求标识。
  ASP.NET有一个基进程标识
  (通常{MACHINE} \\ ASPNET,在IIS 5
  或者IIS网络服务6)是
  使用,如果该应用程序是不
  冒充。如果该应用程序是
  通过,身份冒充
  将是匿名用户(通常
  为IUSR_MACHINENAME)或经过身份验证
  请求用户。

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 , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

要授予ASP.NET对文件的访问,
  在资源管理器中右键单击该文件,
  选择属性,然后选择
  安全选项卡。点击添加来添加
  适当的用户或组。突出
  ASP.NET帐户,并检查
  盒为所需的访问。

To grant ASP.NET 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.

这是错误页面。

推荐答案

你有没有尝试启用在IIS网站的匿名访问?

Did you try enabling Anonymous access for the site in IIS?

编辑:

该错误消息明确地说,你需要做什么。

The error message clearly says what you need to do.

如果你想使用一个单独的受限帐户为网站或启用IIS中的网站的匿名访问。

Use a separate limited account for the site if you want or enable anonymous access for the site in IIS.

这篇关于访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆