How to deploy a .NET Core website

Note : This guide applies only to clients who host on Windows SSD Web Hosting and Windows SSD Reseller and not those who host on .Net Core Hosting.

Clients who host their sites on .Net Core Hosting package do not need to make these changes as the servers that host .Net Core Packages are specifically built and optimized for .net core and include functions such as dedicated application pool management.

If you are hosting on a Windows SSD Web Hosting then please purchase a .Net Core Hosting for best performance and support

 

This guide will walk you through how to deploy a .NET CORE website.

First, ensure that you have created your domain name and website within your Solid Control Panel
Please use the below guide to add a domain to your Solid Control Panel

 - How to add a domain name to the Solid Control Panel.

Next, you may need to create an FTP account. To do this follow the below steps. 

  • Log into your Solid Control Panel.
  • Navigate to Hosting Space Menu.
  • Navigate to FTP Accounts.
  • Click on Create FTP Account.
  • Enter a User Name for the account.
  • Enter a Password and Confirm Password.
  • Click on the green Update button.


absolutehosting.co.za - SolidCP create a FTP account

Once you have created the domain name and website as well as an FTP account you are ready to publish your website content.
To publish your Website to the hosting server Please follow the below Steps.

  • Open Filezilla. (Filezilla Download)
  • Connect to your hosting server. The host name should be ftp.mydomain.co.za (your domain name) along with the user name and password that you entered when creating the FTP account.
  • Ensure that your are uploading your website files to the wwwroot folder on the remote site as in the below example.
  • Once you have uploaded your website content into the wwwroot folder you can close Filezilla.

absolutehosting.co.za - SolidCP ftp wwwroot folder

 

Once your domain name and website domain are created and you have uploaded your website content, follow the below steps to place your website into the ASP.NET CORE application pool. 

  • Log into your Solid Control Panel.
  • Navigate to Hosting Space Menu.
  • Naviage to Websites.
  • Click on your website.

absolutehosting.co.za - SolidCP Selecting a website

  • Click on the Extensions tab.
  • In the ASP.NET dropdown menu select the ASP.NET Core option.
  • Click on the green Save Changes button.

 

 absolutehosting.co.za - SolidCP setting application pools


Your website has now been uploaded to the server and is running in the ASP.NET Core application pool. 
You can now test the site by browsing to it. 

Web.Config Requirements

When testing/browsing the website you may see a 500 - Internal server error. To correct this follow the below steps. 


absolutehosting.co.za - 500 -  internal server error


  • Within your Solid Control Panel navigate to Hosting Space Menu.
  • Navigate to File Manager.
  • Click on your Website.
  • Navigate to the wwwroot folder.
  • Locate the web.config file.
  • Click on the pencil in page icon to edit the file.

 

absolutehosting.co.za - SolidCP webconfig editing

  • In the Edit File screen
  • Find the line modules="AspNetCoreModuleV2" and change to modules="AspNetCoreModule"
  • Find hostingModel="InProcess" and change to hostingModel="OutOfProcess"
  • Click on the green Save button.




Reload the website within your browser and the website should now load without the 500 - Internal server error.

  • .net core, .net core hosting, deploy .net core, net core, publish .net core, publish.net, publish .net, publish core
  • 16 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

How to reset or change your email password from SolidCP

Follow the steps below to change an email password that is hosted on our Windows SSD Hosting...

Email Password Complexity Requirements

For your security and the security of other users hosted on our Windows SSD Web Hosting...

How to Set Website Permissions + Write Permissions

How to set website write permissions using the Windows Hosting Control Panel. Log into the...

URL redirect rule to redirect all website traffic from http to https

This knowledgebase article applies to Windows Hosting only, below are the Linux instructions...

How to connect to your MSSQL databases from your website + using SQL Server Management Studio

How to remotely connect to a Microsoft SQL Database Preamble : In order to connect to a...