) Cs0016: failed to write the output file "C: \ WINDOWS \ xxxxxsktsuj. dll"-"Access denied ." Processing

Source: Internet
Author: User
Cs0016: the output file "C: \ WINDOWS \ Microsoft. net \ framework \ v1.1.4322 \ temporary ASP. net files \ GBE \ 4bd00155 \ 27c1f67 \ 70sktsuj. DLL "--" Access denied. "Error handling:

Generally, the reason for cs0016 is that the temporary directory has insufficient permissions. I still don't know why this problem occurs in the middle, the solution is to add the network service user to the temp Security tab of the Temporary Folder under the Windows directory and grant full permissions. For more detailed explanations, refer to msdn.

Msdn provides the following explanations:

When you view a Microsoft ASP. NET application in a Web browser, you may receive the following error messages:

For the Microsoft. NET Framework Version 1.1, the error message is the following:
Cs0016: cocould not write to output file 'C: \ windows \ Microsoft. net \ framework \ v1.1.4322 \ temporary ASP. net files \ application1 \ c11b43f6 \ cf3ec03 \ rizcntet. dll '. the directory name is invalid.
For the. NET Framework 1.0, the error message is the following:
Cs0013: Unexpected error writing metadata to file 'C: \ windows \ Microsoft. net \ framework \ v1.0.3705 \ temporary ASP. net files \ application2 \ 3fc72f26 \ eb731247 \ ev2bslce. dll '. the directory name is invalid.

Cause
The system temp and TMP variables point to a folder that does not exist. the compiler generates temporary files in the folder where the temp and the TMP variables point to before the files are copied to the temporary ASP. net Files folder. however, the folder where the system variables point to is deleted when you restart the computer. therefore, the compiler cannot generate the temporary files.
 

Resolution
1. Create a Temporary Folder under % SystemRoot %, and then name it temp.
2. grant full permissions on the temp folder to the ASPNET user account in. NET Framework 1.0 or to the network service user account in. NET Framework 1.1.
3. Right-click my computer, and then click Properties.
4. On the Advanced tab, click environment variables.
5. Select the temp variable under system variables, and then click Edit.
6. Type % SystemRoot % \ Temp in the variable value box, and then click OK.
7. Repeat steps 5 and 6 to edit the TMP variable. Click OK two times.
8. Click start, and then click Run.
9. To Reset Internet Information Services (IIS), type iisreset on the command prompt.

Note if the error message that is mentioned in the "symptoms" section of this article persists, restart the computer.

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.