Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))?

When I uploaded my website on the Internet. I upload the site using pretty ftp. after loading the site online, when I started the site using the URL, it gives an error similar to this

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

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

ASP.NET does not have permission to access the requested resource. Consider granting access rights to a resource to an ASP.NET request identifier. ASP.NET has a basic process identifier (usually {MACHINE} \ ASPNET on IIS 5 or network service on IIS 6), used if the application is not simulated. If the application impersonate an identity will be an anonymous user (usually IUSR_MACHINENAME) or authenticated to request the user.

To grant ASP.NET access to the file, right-click the file in Explorer, select "Properties" and select the "Security" tab. Click "Add" to add the corresponding user or group. highlight the ASP.NET account, and check the boxes for the desired access.

This is an error page.

+7
source share
3 answers

Did you try to enable anonymous access for the site in IIS?

Edit:

The error message clearly states what you need to do.

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

+3
source share

I had the same problem. I ran the web application using the ASP.NET Development server from Visual Studio, and the code in which this exception was selected is using reflection.

It was decided to run Visual Studio as an administrator.

+5
source share

see link

Error 0x80070005 - E_ACCESS_DENIED Access denied by DCOM security.

Possible problems The user does not have remote access to the computer through DCOM. Typically, DCOM errors occur when connecting to a remote computer with a different version of the operating system.

Decision:

Provide remote start and remote activation permissions for the user in dcomcnfg. Right-click "My Computer" → "Properties" in the "Security COM" section, click "Change Constraints" for both sections. Provide the user with remote access, remote start and remote activation. Then go to DCOM Config, find "Windows Management Tool" and give the user you want remote start and remote activation. For more information, see Connecting between different operating systems.

0
source share

All Articles