[英]How publish my web site?
I have Solution with web site MyProject. 我有网站MyProject的解决方案。 I need publish this web site.
我需要发布这个网站。 In popup menu I see Build Web Site and Publish Web Site
在弹出菜单中,我看到Build Web Site和Publish Web Site
I publish my site to directory and upload to ftp. 我将我的网站发布到目录并上传到ftp。
But the site gives an error: 但该网站给出了一个错误:
The directory '/App_GlobalResources/' is not allowed because the application is precompiled.
how to publish my site? 如何发布我的网站?
update: I Delete the PrecompiledApp.config. 更新:我删除PrecompiledApp.config。
And gives an error 并给出一个错误
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();
In Visual Studio 2013 you should check the option "Precompile During Publishing", I did this the and solved the issue. 在Visual Studio 2013中,您应该选中“在发布期间预编译”选项,我这样做并解决了问题。
In your case, you could try checking "Allow this precompiled site to be updatable" 在您的情况下,您可以尝试选中“允许此预编译站点可更新”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.