2010-09-02 87 views
0

我收到以下錯誤在編譯時:編譯時錯誤:「無法寫入到輸出文件...訪問被拒絕」

CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7529765b\d6c35794\App_Web_uclogin.ascx.5a9fc98b.zqr8lwaw.dll' -- 'Access is denied. '

任何人都可以建議如何解決這一問題?

+1

清除你的C:\ WINDOWS \ Microsoft.NET \框架\ V2 .0.50727 \ Temporary ASP.NET Files \目錄。 – Aristos 2010-09-02 07:03:16

回答

3

重新啓動IIS,然後刪除c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\中的所有內容。

+0

但它不能解決我的問題,但我仍然得到相同的錯誤 – 2010-09-02 07:14:14

+0

@Vijay:你重新啓動VS嗎? – 2010-09-02 07:20:08

0

Error publishing a webservice in IIS 7.0

Try granting full access permissions to the ASP.NET account (Network Service) for the %TEMP% folder (c:\windows\temp)

雖然,我發現添加完全訪問權限IIS_IUSRS,而不是網絡服務來解決這個問題對我來說

相關問題