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 |