Cs0016: cocould not write to output file 'C: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ temporary

Source: Internet
Author: User
Symptoms

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.
Bytes -------------------------------------------------------------------------------------------------
Cause

The SystemTempAndTMPVariables point to a folder that does not exist. The Compiler generates temporary files in the folder whereTempAndTMPVariables 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.
Bytes -------------------------------------------------------------------------------------------
Resolution

1. Create a Temporary Folder under% SystemRoot %, And then name itTemp.
2. Grant full permissions on the temp folder toASPnetUser Account in. NET Framework 1.0 or toNETWORK SERVICEUser Account in. NET Framework 1.1.
3. Right-clickMy computer, And then clickProperties.
4. OnAdvancedTab, clickEnvironment Variables.
5. SelectTempVariable underSystem Variables, And then clickEdit.
6. Type% SystemRoot %\ TempInVariable valueBox, and then clickOK.
7. Repeat steps 5 and 6 to editTMPVariable. ClickOKTwo times.
8. ClickStart, And then clickRun.
9. To Reset Internet Information Services (IIS), TypeIisresetOn the command prompt

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.