CS0016: 未能写入输出文件“d:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\14969456\5920889d\0feg

the first mothoed:(but this mothoed just can run before u restart ur pc)

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


the best right way:

修改IIS Application Pool 的启动用户为系统用户 ---成功