2012-03-27 91 views
4

我有網站MyProject的解決方案。 我需要發佈此網站。 在彈出菜單中我看到建立網站和發佈網站如何發佈我的網站?

enter image description here

發佈我的網站目錄,並上傳到FTP。

但是,該網站提供了一個錯誤:

The directory '/App_GlobalResources/' is not allowed because the application is precompiled. 

如何發佈我的網站?

更新: 我刪除了PrecompiledApp.config。

並給出了一個錯誤

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: CS0433: The type 'UPSRateServiceWebReference.RateService' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6545937\de1fce5a\App_WebReferences.ixuylfle.dll' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6545937\de1fce5a\assembly\dl3\31691e67\292073b8_400ccd01\App_WebReferences.DLL' 

Source Error: 


Line 255: 
Line 256:  #region PrivateMethods 
Line 257:  private RateRequest CreateRateRequest(RateService rate) 
Line 258:  { 
Line 259:   RateRequest rateRequest = new RateRequest(); 
+0

你上傳到一個空文件夾? – Curt 2012-03-27 15:30:03

+0

那裏有一個'/ App_GlobalResources'文件夾嗎? – Curt 2012-03-27 15:30:17

+0

我更新了我的帖子 – Mediator 2012-03-27 17:54:19

回答

2

刪除PrecompiledApp.config文件並重新啓動應用程序。

here

+0

我更新了我的帖子 – Mediator 2012-03-27 17:54:09

+0

@Curt,我不明白你 – Mediator 2012-03-27 19:35:08

4

兩者在Visual Studio 2013,你應該檢查選項「預編譯出版十一五」期間,我這樣做了,解決這個問題。

enter image description here

在你的情況,你可以嘗試檢查「允許此預編譯站點可更新」