Failed to write the output file... "-" Access denied ." Solution

Source: Internet
Author: User

CS0016: failed to write the output file "d: \ WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ Temporary ASP. NET Files \ test \ d087da43 \ c12930d8 \ 9ze28k_8.dll" -- "Access denied ." Solution

After the system is reinstalled, an error occurs, as shown in the following figure. Some posts say that WINDOWS \ temp is granted the network service permission to modify, read, run, read, and write; others, WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ Temporary ASP. NET Files network service has full control over permissions. But it does not solve the problem for me. Helpless, continue to find... Finally, I found a long-time solution on Microsoft's website: (http://support.microsoft.com/default.aspx? Scid = kb; en-us; 825791)

Symptomswhen 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.

Back to the top

Causethe System TEMPAnd TMPVariables point to a folder that does not exist. The Compiler generates temporary files in the folder where TEMPAnd TMPVariables 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.

Back to the top

RESOLUTION
1. Create a temporary folder under% Systemroot %, And then name it Temp.
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 %\ TEMP inVariable 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), type iisreset on the command prompt.

NoteIf the error message that is mentioned in the "Symptoms" section of this article persists, restart the computer.

 

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.