C# 如何发布我的网站?
我有网站MyProject的解决方案。 我需要发布这个网站。 在弹出菜单中,我看到构建网站和发布网站 我将我的站点发布到目录并上传到ftp 但该网站给出了一个错误:C# 如何发布我的网站?,c#,asp.net,visual-studio-2010,C#,Asp.net,Visual Studio 2010,我有网站MyProject的解决方案。 我需要发布这个网站。 在弹出菜单中,我看到构建网站和发布网站 我将我的站点发布到目录并上传到ftp 但该网站给出了一个错误: The directory '/App_GlobalResources/' is not allowed because the application is precompiled. 如何发布我的网站 更新: 我删除了PrecompiledApp.config 并给出了一个错误 Compilation Error Desc
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();
删除PrecompiledApp.config文件并重新启动应用程序
摘自Visual Studio 2013中的,您应该选中“发布期间预编译”选项,我这样做并解决了这个问题
在您的情况下,您可以尝试检查“允许此预编译站点可更新”是否上载到空文件夹?其中是否已经有
/App\u GlobalResources
文件夹?