Asp.net "Access to the path is denied" Solution Analysis

Source: Internet
Author: User

Add the ASP. NET account permission to the following directory.
C:/WINDOWS/Microsoft. NET/Framework/v2.0.50727/Temporary ASP. NET Files

ASP. NET accounts have the following permissions: Read and run, list folder directories, read, and write.

This problem occurs when I transplanted something I wrote to another machine a few days ago. intuitively, I think of permission issues. however, I almost changed all permissions under the WEB directory to full control, but the problem still cannot be solved. I checked a lot of information and couldn't explain it clearly. some say to change this, but also to change that. later, I finally noticed that when an error occurs, ASP is displayed.. NET Temporary Files folder access is denied. therefore, go to this directory and add the ASPNET and network service users to the permission, and set the permission to writable. The problem is solved!

[Summary] access to the path "..." is denied-Solution

1. The installation may be faulty. reinstall and run the command aspnet_regiis-I. Remember to start it.
2. Upgrade everyone permission to modifiable
3. Improve the aspnet permission: Control Panel-management tools-Computer Management-local users and groups to find the ASPNET affiliated to add the Administrators
4. Delete the iis virtual directory and recreate it.
5. Add <identity impersonate = "true"/> to the web. config file.

Basically, this range cannot be reached.
If you try it all, your problem will be solved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.