Categories
Publishing ASP.NET Core
In this article we will discuss how you should publish an ASP.NET Core application. There are a few extra steps needed to configure this properly.
To run ASP.NET Core you first of all need a Core package from us, with our standard packages such as the total package this is not possible. An upgrade can be requested in the ticket system.
First of all, a number of things should be checked and set in the control panel.
Step 1. Log into the control panel.
Step 2. Go to FTP accounts.
Step 3. Select create FTP account.
Step 4. FTP account
When creating the FTP account, you need to set the home folder to the specific domain folder. See the example in the screenshot.
Step 5. Website folder.
Go to websites in the control panel and change the home folder of the hosting space to a folder above the wwwroot. So instead of etcore.comwwwroot, change this to etcore.comThen
press save changes again.
Step 6. ASP versionStill
under websites in the control panel, select the extensions tab and check that the ASP.NET version is intergrated at 4.0. This is also automatically ASP.NET Core.
After this again save changes.
These were the steps to perform in the control panel.
The following steps will be local in visual studio.
Step 7. Start Visual studio project.
Start a project within Visual studio and select a .NET Core application.
Step 8. Select web application Step
9.Go to the wizard to publishthe application .
Step 10. Select Custom from the screen and click next.
Step 11. Enter the FTP details.
Publish mode -> FTPPassive
mode should be onDestination
URL enter the domain name.
Then click publish again.
Step 12. Complete the settings.
Then press
publish again.
Step 13. Publish the ASP.NET Core application.
Step 14. Go to the website.
After uploading you can go to the URL in your browser. The application will then be available.