[英]How publish my web site?
我有網站MyProject的解決方案。 我需要發布這個網站。 在彈出菜單中,我看到Build Web Site和Publish Web Site
我將我的網站發布到目錄並上傳到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();
在Visual Studio 2013中,您應該選中“在發布期間預編譯”選項,我這樣做並解決了問題。
在您的情況下,您可以嘗試選中“允許此預編譯站點可更新”
刪除PrecompiledApp.config文件並重新啟動您的應用程序。
取自這里
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.