A dedicated server is the most predictable machine to host ASP.NET: a physical server whose memory and NVMe disks belong to your code alone, in a data center with its own network. This tutorial walks through the full installation on a dedicated server, from the OS requirement and the .NET SDK to IIS configuration, environment variables and port rules, then shows how to deploy your first site and tune it. If you are new to bare metal, our guide to hosting your own dedicated server covers the first steps before any software install. Plans begin at US$18.80/month.

Key Takeaways

  • Target .NET 10, the LTS version supported until November 2028. .NET 8 and .NET 9 are out of support from November 10, 2026.
  • On a production dedicated server, install the Hosting Bundle rather than the full SDK: it registers the module the IIS web service needs.
  • Install the web server role first. In the opposite order, your site fails until you repair the bundle.
  • Tools required: Remote Desktop to connect with administrator rights, PowerShell, and about 45 minutes.
  • Open only ports 80 and 443 to the network, keep the rest of the configuration closed, and restrict Remote Desktop to your own IP address.

Why Choose a Dedicated Server for .NET Applications

No noisy neighbors. A virtual server shares its hardware with other tenants through a hypervisor, and each vCPU is a time slice of someone else's processor. Hyper-V, KVM or VMware, the hypervisor schedules every guest on the same hardware. A physical server has no hypervisor between your code and the hardware: every core, every gigabyte of RAM and the full disk throughput go to your workload. On a VPS, one vCPU may be half a core; on a physical server, a core is a core.

Predictable latency. The framework is fast enough that the bottleneck is often the platform underneath. Garbage collection, JIT compilation and database queries all benefit from processor time that is never stolen by another tenant on a dedicated machine, and from storage that no other virtual machine writes to.

Full control of the stack. On dedicated hosting, you choose the OS, the .NET line, the web server options and the patching schedule. Nothing is locked by the provider: you can run SQL Server, background jobs and your web app side by side on the same physical server, or isolate them with Hyper-V if your license allows it.

Fixed cost. A physical server costs the same every month, whatever the traffic, and the plan does not change when the workload grows. For a SaaS product with steady load, that is usually cheaper than a cloud instance of the same size, as our guide to a dedicated server for SaaS hosting explains. Kimsufi dedicated servers sit in OVHcloud data centers across Europe, North America and Asia-Pacific, with anti-DDoS protection on every plan. Pick the data center closest to your users and the host your traffic comes from: for web hosting, latency to the data center matters more than any tuning.

Prerequisites and System Requirements

Operating system and licensing

You need a supported 64-bit Windows Server edition, with the Desktop Experience or the minimal installation. Both run the same .NET code; the minimal option has a smaller attack surface and needs fewer reboots. Check the Microsoft .NET support page for the exact OS list of the release you plan to run.

The server license. Windows Server is a commercial product: every physical server running it needs a server license. On Kimsufi, a Windows Server license is available as a paid option at checkout, and the OS is then installed automatically when you provision the server, with administrator access and Remote Desktop ready. You can also add the license later from the control panel and reinstall. Check the specific license terms with your provider if you plan to resell hosting on the machine.

Editions. Microsoft sells Windows Server in Standard and Datacenter editions. The difference matters only if you plan to run many Hyper-V virtual machines on the same hardware: Datacenter covers unlimited guests, Standard covers two. For a single .NET application, Standard is enough.

Other licenses. .NET itself is free and open source under the MIT license, with no fee and nothing to buy. SQL Server, by contrast, requires a separate software license, unless you use the free Express edition. Count every license your solution needs before you size the budget: the operating system, the database and any commercial component in your code.

Hardware

.NET itself is light: it needs a few hundred megabytes of storage and runs on any modern 64-bit processor. Your workload defines the real hardware needs:

WorkloadCoresRAMDisk
Small ASP.NET site or API4 cores16 GBNVMe SSD
Business app with SQL Server6 to 8 cores32 GBNVMe RAID 1
Several sites and background jobs8+ cores64 GBNVMe RAID 1

The main need for a .NET server is NVMe storage, ideally NVMe RAID 1: build output, NuGet caches, logs and SQL Server data all write to disk constantly.

Access

You need the server IP address and the administrator password, sent by email once the physical server is provisioned (it takes minutes to provision), plus a Remote Desktop client such as mstsc, or Windows App on macOS. If Remote Desktop ever stops responding and you cannot connect, the remote console in the control panel gives you out-of-band access, and Kimsufi support can check the hardware and network side.

Architecture. A physical server at Kimsufi runs x64, which simplifies the setup. ARM64 builds of .NET exist for ARM64 hardware, but you will not need them here: always pick the x64 (win-x64) download. Installing an ARM64 package on an x64 server is one of the most common installation errors.

💡 Tip No Windows Server license? .NET runs natively on Linux too. On Ubuntu or Debian, apt install aspnetcore-runtime-10.0 gives you the same stack, with Nginx in front of Kestrel.

Step 1: Download and Install the .NET SDK

The SDK contains the compiler and the dotnet command-line tool. You need it on a build server or a developer workstation, not on every production server. Install it on this server only if you plan to build code and deploy it from here.

Option A: Windows Package Manager

Connect to the server over Remote Desktop, open PowerShell as administrator, and run one command:

bash
winget install Microsoft.DotNet.SDK.10

Winget downloads the latest 10.0 SDK, verifies its signature and runs the installer silently.

Option B: the official installer

If winget is not available on your server, download the x64 installer, dotnet-sdk-10.0.x-win-x64.exe, from the official .NET download page. Run the exe file as administrator. The installer writes to C:\Program Files\dotnet, records the install location in the HKLM registry hive and adds the folder to the system PATH.

Check the download. The .NET download page publishes a SHA-512 checksum for each build. Compare it before you run the exe on a production server:

bash
Get-FileHash .\dotnet-sdk-10.0.x-win-x64.exe -Algorithm SHA512

Option C: the install script

For automated setup, or to pin a specific build without touching the registry, use the official PowerShell script:

bash
Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1
.\dotnet-install.ps1 -Channel 10.0 -InstallDir C:\dotnet

The script downloads the build you ask for and extracts it to the folder you choose. Pass -Version 10.0.100 to pin an exact build. The script does not change PATH or the registry, which makes it the right tool for side-by-side installs on a build server, but you must set DOTNET_ROOT yourself, as described below.

Verify the installation

bash
dotnet --list-sdks
dotnet --info

✅ Expected result dotnet --list-sdks returns a 10.0.x SDK, and dotnet --info shows the OS, the architecture (x64) and the install path.

Step 2: Install the .NET Runtime

For a production server, the right package is the ASP.NET Core Hosting Bundle. It installs three components in one step: the base .NET package, the ASP.NET Core layer and the ASP.NET Core Module (ANCM), the native DLL that lets the web server run your code.

bash
winget install Microsoft.DotNet.HostingBundle.10

Or download dotnet-hosting-10.0.x-win.exe from the .NET download page. Choose the package that matches your project:

PackageContainsUse it for
.NET RuntimeMinimalConsole apps, a background service
ASP.NET Core RuntimePlus web frameworkSelf-hosted web apps on Kestrel
Hosting BundleBoth + ANCMDedicated hosting behind the web server
.NET Desktop RuntimePlus WPF/WinFormsDesktop apps, not for a server

After the installation, restart the web server service so it loads the new module:

bash
net stop was /y
net start w3svc

The first command stops the Windows Process Activation Service (WAS) and everything that depends on it; the second brings back the World Wide Web Publishing Service (W3SVC), which serves your sites and restarts WAS with it. Expect a few seconds of downtime for each service.

Several versions side by side. Each new line lands in its own folder: .NET 10 does not replace an older one, and each project uses the one it targets. List them with dotnet --list-runtimes. Remove the ones you no longer need once their applications have moved, because an unsupported runtime receives no security fix.

Moving from .NET 8 or .NET 9

Microsoft stops shipping security patches for .NET 8 and .NET 9 on November 10, 2026. Nothing breaks that day, but every vulnerability found afterwards stays open on them. To move an existing site:

  • Install the .NET 10 Hosting Bundle next to the old one.
  • Change <TargetFramework> from net8.0 or net9.0 to net10.0 in the project file, then rebuild and test.
  • Publish the new build to the server, then uninstall the old one once nothing targets it.

Why not .NET 11? It ships on the same day, but as a Standard Term Support release with a shorter support window. On a production server, LTS is the safer choice.

Both installers succeed in either order, but installing the Hosting Bundle before the web server role leaves ANCM unregistered until the first request fails

Step 3: Configure IIS for ASP.NET

Internet Information Services is a built-in server role, not a separate download. Install it with one PowerShell command:

bash
Install-WindowsFeature -Name Web-Server, Web-WebSockets -IncludeManagementTools

WebSockets is needed if your site uses SignalR. Classic ASP.NET on .NET Framework also needs Web-Asp-Net45; the modern stack does not.

Create the application pool and the site

Modern ASP.NET sites run in-process through ANCM, so MyAppPool must not load the .NET Framework CLR. Each site gets its own AppPool, so a crash in one never takes down another:

bash
Import-Module WebAdministration
New-WebAppPool -Name "MyAppPool"
Set-ItemProperty IIS:\AppPools\MyAppPool -Name managedRuntimeVersion -Value ""
New-Website -Name "MyApp" -Port 80 -PhysicalPath "C:\inetpub\myapp" -ApplicationPool "MyAppPool"

Give the MyAppPool identity read access to the site folder:

bash
icacls C:\inetpub\myapp /grant "IIS AppPool\MyAppPool:(OI)(CI)RX"

Check in IIS Manager

Open IIS Manager, the graphical console for the web server. MyAppPool should show No Managed Code as its .NET CLR setting, and the site should be bound to port 80. The HTTPS binding comes once your certificate is in place.

Minimal installation. Without the Desktop Experience, there is no local graphical console. Manage the web server remotely from a workstation through the Web Management Service, or stay in PowerShell, where every command in this guide works unchanged.

Setting Environment Variables (DOTNET_ROOT, PATH)

The standard installers write C:\Program Files\dotnet to the system PATH and register the location in the registry, so most servers need no manual change. Two cases do:

  • You used the install script or extracted a zip to a custom folder. Point DOTNET_ROOT at that folder and append it to PATH, or the dotnet command and apphost exe files will not find .NET.
  • You run several .NET installs side by side and want a specific one for a background job or a scheduled task.

Machine-level variables

From an elevated PowerShell session:

php
[Environment]::SetEnvironmentVariable("DOTNET_ROOT", "C:\dotnet", "Machine")
$path = [Environment]::GetEnvironmentVariable("Path", "Machine")
[Environment]::SetEnvironmentVariable("Path", "$path;C:\dotnet", "Machine")

Open a new session and check with $env:DOTNET_ROOT and where.exe dotnet. Machine-level variables reach every program after a restart, while $env: changes last for the current session only.

On a 64-bit server running 32-bit apps, the x86 build has its own variable, DOTNET_ROOT(x86). For a pure win-x64 deployment, DOTNET_ROOT alone is enough.

Variables for one site

Variables your code reads, such as ASPNETCORE_ENVIRONMENT=Production or a connection string, belong in the site's web.config under <environmentVariables>, so they apply to that site only:

xml
<aspNetCore processPath="dotnet" arguments=".\MyApp.dll" hostingModel="inprocess">
  <environmentVariables>
    <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
  </environmentVariables>
</aspNetCore>

Two more variables worth knowing: DOTNET_CLI_TELEMETRY_OPTOUT=1 turns off SDK telemetry on a build server, and DOTNET_gcServer=1 forces server GC for a console app or a background job.

Configuring Firewall and Security Settings

The OS ships with its firewall on. Open only what your site serves:

bash
New-NetFirewallRule -DisplayName "HTTP" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow
New-NetFirewallRule -DisplayName "HTTPS" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow
PortProtocolOpen to
80, 443TCPThe internet
3389TCPYour admin IP only (Remote Desktop)
8172TCPYour CI server only, if you use Web Deploy
1433TCPNever public (SQL Server)
5000, 5001TCPNever public (Kestrel behind the web server)

Restricting Remote Desktop is the single most effective change to keep the server secure, because exposed RDP endpoints are scanned constantly. Our firewall configuration guide covers rules by source IP in detail.

HTTPS. Use a free Let's Encrypt SSL certificate through a client such as win-acme, which installs the certificate, creates the 443 binding and renews it on schedule. A secure site also needs HSTS and modern TLS, both available in the web server options.

Least privilege. Keep the default ApplicationPoolIdentity instead of running a site as an administrator or LocalSystem. Each AppPool identity is its own virtual account, which isolates one site from another. The administrator account itself should have a long password and be used for maintenance only.

Keep .NET patched

On a server OS, modern .NET is not updated by Windows Update by default. Opt in to Microsoft Update for .NET with a registry value:

bash
reg add "HKLM\SOFTWARE\Microsoft\.NET" /v AllowAUOnServerOS /t REG_DWORD /d 1 /f

AllowAUOnServerOS at the root of the .NET key in HKLM applies to every .NET line; the same AllowAUOnServerOS value under the 10.0 subkey limits it to .NET 10. To ensure it is in place, read it back with reg query. Then tick "Receive updates for other Microsoft products" in Windows Update, or the AllowAUOnServerOS value has no effect.

To freeze a build you have validated, use BlockMU instead:

bash
reg add "HKLM\SOFTWARE\Microsoft\.NET\10.0" /v BlockMU /t REG_DWORD /d 1 /f

BlockMU stops Microsoft Update from changing that build, so you can apply patches during a maintenance window after testing. Delete the BlockMU value when you are ready to update again. The two keys also work through Group Policy if you manage several servers. Whichever you choose, a secure server is a patched one: .NET security fixes ship every month on Patch Tuesday.

Deploying Your First .NET Application

With .NET and the web server in place, deploy a test project to confirm the whole chain works.

Create and publish

On your workstation or a build server with the SDK:

bash
dotnet new webapp -o MyApp
cd MyApp
dotnet publish -c Release -r win-x64 --self-contained false -o .\publish

-r win-x64 targets the server architecture, and --self-contained false relies on the framework already installed by the bundle, which keeps each deployment small. The publish folder contains MyApp.dll, its dependency DLL files and a generated web.config.

Framework-dependent or self-contained? A self-contained build ships its own copy of .NET, so it runs anywhere, at the cost of a larger deployment that you must patch yourself through each new build. On a server you control, framework-dependent is the better default.

Copy and deploy the files

Copy the publish folder to C:\inetpub\myapp. To deploy repeatedly, three tools are worth setting up:

  • Web Deploy (MSDeploy) publishes from Visual Studio or a CI pipeline through the Web Management Service on port 8172.
  • A CI agent, such as a GitHub Actions self-hosted runner or an Azure DevOps agent, runs dotnet publish and deploys the output on the server itself.
  • A PowerShell script that takes the site offline, copies the files and brings it back.

Avoid locked files. The worker process keeps MyApp.dll loaded. Drop an app_offline.htm file into the site folder before you copy: ANCM shuts the site down, unlocks the DLL files and serves that page until you delete it.

Test

Browse to http://<server-ip>/. The default page of the template confirms that the web server, ANCM and .NET work together. From here, every time you deploy, the deployment follows the same three steps: publish, copy, test.

Performance Tuning on Kimsufi Dedicated Hardware

Application pool. For a production site, switch MyAppPool to AlwaysRunning, enable preload on the site, and change the idle timeout to 0. The first request then never pays for a cold load, and w3wp.exe is not shut down after 20 idle minutes.

Garbage collection. On a dedicated server, the framework uses server GC by default, with one heap per processor. On a physical server running a single site, that is the right default. If you run several sites on one server, cap each with DOTNET_GCHeapHardLimit, so one workload cannot take all the memory.

Startup. Publish with -p:PublishReadyToRun=true to precompile assemblies and reduce JIT work. Tiered compilation and dynamic PGO are on by default in .NET 10 and should stay that way.

Storage. On a dedicated server, put the OS, the site and SQL Server data on NVMe. Kimsufi dedicated servers with two NVMe drives come in soft RAID 1, which keeps the server running if one disk fails. Our guide to RAID levels and their trade-offs compares it with RAID 0, 5 and 10. A configuration such as the KS-GAME dedicated server, with an Intel Core i7-7700K, 32 GB of RAM and two 450 GB NVMe drives in RAID 1, suits a mid-size ASP.NET project with its database on the same physical server.

Network. HTTP/2 is on by default for HTTPS. Enable response compression for text content, and serve static files from the web server or a CDN rather than through your code.

Backups. RAID is not a backup. Schedule backups of the site folder, the web.config files and SQL Server databases to storage outside the dedicated server, and test a restore. Keep at least one copy in a different data center.

Measure. Use dotnet-counters and dotnet-trace to see processor usage, GC and request rates in production. Install each tool as a global .NET tool on the server with one command, or run them from a developer workstation over a remote session.

Troubleshooting Common Installation Issues

SymptomLikely causeFix
HTTP 500.19ANCM not registeredRepair the bundle after installing the web server role
HTTP 500.30Application failed at launchEnable stdoutLogEnabled in web.config and read the log
HTTP 500.31Required .NET build not foundInstall the matching one
HTTP 503Application pool stoppedCheck the Windows Event Log, then restart MyAppPool
dotnet is not recognizedInstall folder missing from PATHFix PATH or DOTNETROOT, then open a new session
"A compatible .NET SDK was not found"global.json pins an SDK you do not haveInstall that SDK or update global.json
BadImageFormatExceptionx86/x64 mismatchPublish for win-x64 and use 64-bit .NET

The Windows Event Log (Application log, source "IIS AspNetCore Module V2") records the exact reason for most 500-series errors. For other server-side errors and fixes, see our list of common dedicated server errors.

Installer fails. If the bundle or SDK installer stops with an error, rerun the exe from a command prompt with /log install.log and search the log for "error". The usual causes are a pending reboot, a full system drive or a corrupted download.

FAQ: .NET Installation on Dedicated Servers

How do I set up a dedicated server?

Order the hardware, choose the OS at checkout, and wait for the email with the IP address and credentials. Connect with Remote Desktop, apply updates, restrict RDP to your IP, then install your stack on the dedicated server. Our guide to a website on a dedicated server covers the full setup sequence.

How do I install Microsoft .NET on Windows 11?

The same way as on a server: winget install Microsoft.DotNet.SDK.10 for development, or the installer from the .NET download page. It is a desktop OS, so use it for development and testing, not for production sites.

How to install .NET Framework manually?

.NET Framework 4.8 is built into recent server editions and turned on as a feature rather than downloaded. If it is missing, turn it on with Install-WindowsFeature NET-Framework-45-Core, or use the offline installer from Microsoft for 4.8.1. .NET Framework is a different product from modern .NET: it runs only on Windows and receives no new features.

Is .NET automatically installed on Windows?

.NET Framework 4.x is, as part of the OS. Modern .NET, from .NET 5 to .NET 10, is not: you install it yourself with the SDK or a standalone package.

What are the system requirements for .NET on a dedicated server?

A supported 64-bit server OS or Linux distribution, a few hundred megabytes of storage, and enough cores and RAM for your workload: that last one is the requirement to size carefully. In practice, 4 cores and 16 GB of RAM on NVMe storage cover a small production site.

How can I configure IIS to host ASP.NET applications?

Install the Web-Server role and the bundle, create an application pool with No Managed Code, and point a site at your published folder. The web.config generated by dotnet publish tells the web server how to launch your code.

Which environment variables must be set for .NET on Windows?

None, if you used the standard installer. With a custom install folder, define DOTNET_ROOT and append the folder to PATH. Keep ASPNETCORE_ENVIRONMENT per site in web.config rather than machine-wide.

What firewall ports need to be opened for .NET applications?

Ports 80 and 443 for web traffic, plus 3389 for Remote Desktop restricted to your own IP. Keep Kestrel ports, SQL Server and Web Deploy closed to the public internet.

Run your .NET sites on bare metal Kimsufi dedicated servers from US$18.80/month, with a Windows Server license available as an option. Root access, fixed monthly pricing, built-in DDoS protection.