Compiler error message: cs0016: failed to write output file error handling

Source: Internet
Author: User

Compilation Error
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.

Compiler error message: cs0016: failed to write the output file "D:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/5177u/d087da43/c12930d8/9ze28k_8.dll "--" Access denied. "

Source error:

 
 

Source File: row: 0

Solution:

I encountered this problem a few days ago and tried many methods, such as stopping the Index Service, reinstalling IIS, reinstalling. NET Framework, and deleting

The temporary ASP. NET Files directory re-assigns permissions, and even reinstalls the system. The problem persists;

I searched the internet and many people thought about this problem by assigning permissions to the temporary ASP. NET Files directory.

This is also the case. Finally, I found the solution to this problem on Microsoft's website, which is actually very simple, as long as the windows/temp permission settings

Add the permissions of the network service (if Win2000 is an Asp.net user ).

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.

 

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.