• English
    • Italiano
Tel: +39 0984 1527937
info@vaisulweb.com
  • Customers Area
  • Whois
  • Contact Us
VaiSulWebVaiSulWebVaiSulWebVaiSulWeb
  • Hosting
    • Windows Hosting
      • Windows .NET Hosting
      • Windows .NET Dedicated Hosting
    • Hosting Linux
      • VSW Linux Basic
    • Related News

      • 7 March, 2020
        Comments Off on How to enforce SSL/TLS connections with our Cloud Hosting service

        How to enforce SSL/TLS connections with our Cloud Hosting service

  • Domains
  • Cloud and servers
    • Virtual Private Servers
      • VSW Cloud Server
      • VSW Cloud Server – Series L
    • Platforms
      • Microsoft Azure
      • Microsoft Office 365
  • Security
    • SSL Certificates
      • Introduction to SSL certificates
      • RapidSSL certificates
      • DigiCert Certificates
      • GeoTrust SSL certificates
      • Comodo / Sectigo SSL certificates
      • Thawte Certificates
      • Trustwave Certificates
    • Other security services
      • Backup services
      • Monitoring Services
      • Code-signing certificates
      • VPN Services
    • Related news

      • 24 May, 2020
        Comments Off on New VPN services to improve privacy and security of Internet access

        New VPN services to improve privacy and security of Internet access

  • Infrastructures
    • Column1
      • Windows Server Failover Clustering
      • Storage Spaces Direct (S2D)
      • Hyper-converged infrastructures
    • Column2
      • Kubernetes
      • Azure Service Fabric
      • cPanel Hosting infrastructure
    • Related News

  • Solutions
    • Managed services
      • Enteprise Mail & Collaboration
      • TeamShare Services
      • S3 Storage Services
      • Matomo Analytics
    • Managed services
      • Streaming and transcoding services
      • Notarization and e-signing service
      • Windows Bastion Service
    • Related News

      • 23 December, 2019
        Comments Off on VaiSulWeb unveils VSW Notary, a new notarization and e-signing service

        VaiSulWeb unveils VSW Notary, a new notarization and e-signing service

  • News
Next Previous

How to use ASP.NET Core with our hosting services

VaiSulWeb 22 October, 2019

Microsoft just released the RTM version of ASP.NET Core 3, the new multi-platform framework that allows to develop and host code on both Windows and Linux. ASP.NET Core applications can be seamlessly hosted on our hosting packages and it doesn’t require special configuration or dedicated machines.

How to use ASP.NET core with our cloud hosting services

Our cloud hosting service is ideal to host applications that could require an high degree of scalability thanks to its shared and dedicated instances. You can start with a single shared instance and then scale up to multiple instances to improve application performances. To publish your ASP.NET Core application on a cloud hosting account you need to generate a framework-independent build of it. Such environments don’t provide default ASP.NET Core runtimes so that users can customize them the way the need.

Publishing to our cloud hosting service supports both Tiered Compilation (TC) and Ready-to-Run (R2R) images: both of them allow to improve application startup times.

When you’re ready to publish your application, follow these instructions:

  • edit the main .csproj file to enable Tiered Compilation (TC) and Ready-to-Run (R2R) images:
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <TieredCompilationQuickJit>true</TieredCompilationQuickJit>
    <PublishReadyToRun>true</PublishReadyToRun>
  </PropertyGroup>
  • prepare your application after enabling a framework-independent build for the “win-x64” architecture.

After building your application, target folder will host all those files that you need to move into the “wwwroot” folder of your website. Please note that inside the target folder is located an additional “wwwroot” folder according to the default setup. Such folders share the same name but the “wwwroot” folder inside the target path must be published inside the “wwwroot” folder that represents the root of the website.

Before you publish your application you need to edit the web.config file inside the target folder and make some changes. Locate the following rows:

  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath=".\NETDemo.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>

and change the following row

<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />

into

<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />

then change the following row

<aspNetCore processPath=".\NETDemo.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />

into

<aspNetCore processPath=".\NETDemo.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />

Now you can publish your files to the root of the hosting account. By using this configuration you will achieve the maximum available performance.

How to use ASP.NET Core 3 with VSW Linux .NET accounts

VSW Linux .NET service has been designed for customers that need to quickly publish their applications or websites that won’t probably need a high degree of scalability. To make publishing easier, these services support framework-dependent applications so you will only need to publish a reduced set of files. However, you will not be able to customize your runtime.

To prepare your application just setup building using framework-dependent configuration and set the target runtime as “Portable”. No other changes are needed. You will need to publish your files into the “public_aspnet” folder, not the “public_html”.

VSW Linux .NET accounts support .NET Core 2.1, 2.2 and the new 3.0.

Conclusion

ASP.NET Core 3 support is available on both Windows and Linux. Services are designed with different type of applications in mind and different scalability needs.

1

Search

Recent news

  • New VPN services to improve privacy and security of Internet access May 24, 2020
  • How to enforce SSL/TLS connections with our Cloud Hosting service March 7, 2020
  • VaiSulWeb unveils VSW Notary, a new notarization and e-signing service December 23, 2019
  • How to use ASP.NET Core with our hosting services October 22, 2019
  • ASP.NET Core a first-class citizen for VaiSulWeb July 30, 2019

Archives

  • May 2020
  • March 2020
  • December 2019
  • October 2019
  • July 2019
  • May 2019
  • April 2019
  • March 2019
  • May 2018
  • November 2017
  • May 2017

Categories

  • Hosting
  • Managed services
  • Security
  • Services
  • VaiSulWeb

  • You may also like

    How to enforce SSL/TLS connections with our Cloud Hosting service

    Read now
  • You may also like

    ASP.NET Core a first-class citizen for VaiSulWeb

    Read now
  • You may also like

    New Linux hosting services starting from € 29,90 / year

    Read now

Contact info

Via Corrado Alvaro 31
87036 Rende (CS)
Italy
+39 0984 1527937
info@vaisulweb.com
Intesa Sanpaolo - Digitalizziamo Tour 2023 - Azienda selezionata

About us

  • About VaiSulWeb
  • Network and datacenters
  • Contact Us
  • Service Terms
  • Privacy Policy
More information on EU Digital Professions from Netcore s.r.l.

Latest news

  • New VPN services to improve privacy and security of Internet access

    VaiSulWeb introduces a new class of services aimed at improving privacy and

    1

    24 May, 2020
  • How to enforce SSL/TLS connections with our Cloud Hosting service

    After a certification authority issues a SSL/TLS certificate you might probably want

    1

    7 March, 2020
Copyright © 1999-2024 VaiSulWeb (una divisione di Netcore s.r.l. a socio unico) - P.IVA IT03149210787 - REA CS214579
  • Hosting
    • Cloud Hosting
      • Windows .NET Hosting
      • Windows .NET Dedicated Hosting
    • Linux hosting
      • VSW Linux Basic
  • Domains
  • Cloud and servers
    • Virtual Private Servers
      • VSW Cloud Server
      • VSW Cloud Server – L
    • Platforms
      • Microsoft Azure
      • Microsoft Office 365
  • Security
    • SSL Certificates
      • Overview of SSL Certificates
      • RapidSSL certificates
      • DigiCert Certificates
      • GeoTrust SSL certificates
      • Comodo / Sectigo SSL certificates
      • Thawte Certificates
      • Trustwave Certificates
    • Other security services
      • Backup services
      • Monitoring Services
      • Code-signing certificates
      • VPN Services
  • Infrastructures
    • Windows Server Failover Clustering
    • Hyper-converged infrastructures
    • Storage Spaces Direct (S2D)
    • Azure Service Fabric
    • Kubernetes
    • cPanel Hosting infrastructure
  • Solutions
    • Enteprise Mail & Collaboration
    • TeamShare Services
    • S3 Storage Services
    • Windows Bastion Service
    • Notarization and e-signing service
    • Matomo Analytics
  • News
  • About VaiSulWeb
    • About VaiSulWeb
    • Network and datacenters
  • Contact Us
  • Customers Area
  • Whois
  • English
    • Italiano
VaiSulWeb