Deploying ASP.NET Core Website on Centos/Linux Server in VS2019

Chuck Smillie 1 Reputation point
2021-03-25T15:16:36.067+00:00

I have been trying to just deploy the basic sample template VS2109 sets up when you create a ASP.NET Core C# project with login(.NET 5.0 Authentication Type Individual Accounts, Configure for HTTPS). I can run it locally with no problem, but when I try to FTP it to my web site I get a bunch of errors (see below). I assume I need to add something to the server, but not sure how well ASP.NET Core plays with something outside the Windows biosphere ... also, It seems if I pay for Azure it will work, but honestly I am doing sites for fun and free, more for my learning and don't want to get into a bunch of paid subscriptions for something that only is gaining me knowledge at this point.

Suggestions would be wonderful. (NOTE this is hosted on OLM.net servers ... who believes the .dll's may be triggering server security, but it's not downloading anything). Again I assume it's a simple setting some where that I am missing.

============= ERRORS ON OUTPUT ===============
Unable to add 'NuGet.Common.dll' to the Web site. Ready to proceed (200).
Unable to add 'NuGet.Configuration.dll' to the Web site. Ready to proceed (200).
Unable to add 'NuGet.Credentials.dll' to the Web site. Ready to proceed (200).
Unable to add 'NuGet.DependencyResolver.Core.dll' to the Web site. Ready to proceed (200).
Unable to add 'NuGet.Frameworks.dll' to the Web site. Ready to proceed (200).
...
Unable to add folder 'runtimes/win-arm64' to the Web site. Cannot create folder "runtimes/win-arm64".
Unable to add folder 'runtimes/win-x64' to the Web site. Cannot create folder "runtimes/win-x64".
Unable to add folder 'runtimes/win-x86' to the Web site. Cannot create folder "runtimes/win-x86".
Unable to add folder 'wwwroot' to the Web site. Cannot create folder "wwwroot".
Publish failed. Target ftp://thexxxpp.com/dev.
====FROM THE TEMP FILE:====
3/24/2021 3:09:14 PM System.AggregateException: One or more errors occurred.
---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.<--- Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed.
Check the Output window for more details.
=========END ERROR LOGS==========

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,204 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Chuck Smillie 1 Reputation point
    2021-03-25T15:29:27.213+00:00

    I may have just answer this ... checked "Enable Docker" and selected "Linux" for Docker OS, will report after I attempt to deploy ... will need to be this evening since my company will not allow me to become a "Insider" due to corporate policies.

    If anyone has some great ideas ... please post this if I'm on the wrong rabbit trail

    0 comments No comments