1. 程式人生 > >關於CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary AS

關於CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary AS

1、新增使用者"Network Service” 和 “IIS_IUSERS” 讀下面目錄的讀寫許可權

a) C:\Windows\Temp

b) C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

 

2、在C:\Windows\Microsoft.NET\Framework64\v4.0.30319

aspnet_regiis.exe -i

 

3、重啟iis

iisreset /retart

 

如果還是不行,請重灌IIS和framework,再把上面步驟執行一下