How to publish my website?

I have a solution with the MyProject website. I need to publish this website. In the pop-up menu, I see "Creating a website and publishing a website"

enter image description here

I publish my site in a directory and upload it to ftp.

But the site gives an error message:

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

How to publish my site?

update: I Remove 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(); 
+4
source share
2 answers

Delete the PrecompiledApp.config file and restart the application.

Taken from here

+2
source

In Visual Studio 2013, you should check the "Precompile at publish time" option, I did this and solved the problem.

enter image description here

In your case, you can try checking "Allow this pre-compiled site to update"

+4
source

Source: https://habr.com/ru/post/1403698/


All Articles