IIS Temporary ASP. NET Files Access Denied Solution

Source: Internet
Author: User

Error message:

Error CS0016: cocould not write to output file 'C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP. NET Files \... \ xxxxxx. dll '--' Access denied. '

 

There are several solutions:

Solution 1:
Grant writeable permissions to the folder 'C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP. NET Files by adding permissions to network service, IUSER_XXX, ASPNET, and Everyone.

Solution 2:
Add the permission network service, IUSER_XXX, ASPNET, and Everyone to the folder 'C: \ WINDOWS \ Temp, and grant the write permission.

Solution 3:

1. Create a directory named Temp under % Systemroot %. (If the directory already exists, skip this step)
2. grant full permission to the aspnet User Account (relative to. NET Framework 1.0) or network service user account (relative to. NET Framework 1.1 or later) in this directory.
3. Point the system environment variable TEMP to % SystemRoot % \ TEMP.
4. Point the system environment variable TMP to % SystemRoot % \ TEMP.
5. If necessary, enter iisreset in start --> RUN To Reset Internet Information Services (IIS ).
6. restart the computer if necessary.

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.