2015-06-10 24 views
4

我再次收到此編譯錯誤然後再次。我無法永久解決它。編譯器錯誤:'C: Windows Microsoft.NET Framework v4.0.30319 Temporary ASP.NET Files root 014679fc 1b393534 App_Web_glpoum5i.dll'找不到

調試此錯誤我清理解決方案並重建解決方案,有時它的工作,有時它再次顯示相同的編譯錯誤。

請告訴我這個問題的永久解決方案。

'/'應用程序中的服務器錯誤。


Compilation Error 

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0006: Metadata file 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\014679fc\1b393534\App_Web_glpoum5i.dll' could not be found 
+0

嘗試關閉並重新打開Visual Studio中, –

+0

當我重新打開Visual Studio中,它的工作的後5分分鐘的,如果我改變任何代碼,再編譯錯誤發生的.. – siddaramesh

+0

更改dll引用到任何其他地方,可在編譯時間後,臨時文件夾將被清除。 :( –

回答

1

此,請打開你的web.config文件,並添加以下兩個最佳答案設置在編譯標記添加

<compilation targetFramework="4.0" debug="false" batch="false"> 

保持coidng,而且我嘗試下面的事情時,我在我嘗試在服務器上託管的應用程序中獲得相同的錯誤

  1. 單擊開始,單擊運行,鍵入iisr eset/stop,然後單擊確定。
  2. 打開C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files目錄。
  3. 刪除您在步驟中找到的目錄中的所有文件和所有文件夾
  4. 單擊開始,單擊運行,鍵入iisreset/start,然後單擊確定。
  5. 再次進行構建,然後嘗試訪問您的網站。
相關問題