question

ChuckSmillie-5099 avatar image
0 Votes"
ChuckSmillie-5099 asked ChuckSmillie-5099 edited

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

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==========

dotnet-aspnet-core-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChuckSmillie-5099 avatar image
0 Votes"
ChuckSmillie-5099 answered ChuckSmillie-5099 edited

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.