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.