gpt4 book ai didi

asp.net - 访问被拒绝。 (HRESULT : 0x80070005 (E_ACCESSDENIED))? 的异常

转载 作者:行者123 更新时间:2023-12-02 16:16:43 26 4
gpt4 key购买 nike

当我在线上传我的网站时。我使用可爱的 ftp 上传网站。在线上传网站后,当我使用 url 运行网站时,会出现如下错误

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.

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

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.

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.

这是错误页面。

最佳答案

我也遇到了同样的问题。我正在使用 Visual Studio 中的 ASP.NET 开发服务器运行 Web 应用程序,引发此异常的代码是使用反射。

通过以管理员身份运行 Visual studio 解决了这个问题。

关于asp.net - 访问被拒绝。 (HRESULT : 0x80070005 (E_ACCESSDENIED))? 的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2674493/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com