{"id":1530,"date":"2026-11-17T15:00:25","date_gmt":"2026-11-17T06:00:25","guid":{"rendered":"https:\/\/www.winserver.net\/blog\/?p=1530"},"modified":"2026-11-16T16:04:21","modified_gmt":"2026-11-16T07:04:21","slug":"host-dotnet-11-iis-windows-server","status":"publish","type":"post","link":"https:\/\/www.winserver.net\/blog\/host-dotnet-11-iis-windows-server\/","title":{"rendered":"How to Host a .NET 11 App on IIS (Windows Server 2026): with PowerShell"},"content":{"rendered":"<p><em>Last updated: November 13, 2026<\/em><\/p>\n<p>Microsoft released .NET 11 on November 10, 2026, along with C# 15. If you build web apps or APIs with ASP.NET Core, the natural place to run them on Windows is <strong>IIS<\/strong>, the web server built into Windows Server. IIS handles domains, HTTPS certificates, restarts and logging, while your app focuses on its own work.<\/p>\n<p>This guide takes you from a fresh Windows Server to a live .NET 11 app on IIS, with <strong>copy-paste PowerShell scripts<\/strong> for each stage, plus a troubleshooting table for the error codes you&#8217;re most likely to see.<\/p>\n<div style=\"border: 2px solid #045FA4; border-radius: 8px; background: #F4F8FC; padding: 16px 20px; margin: 0 0 24px;\">\n<p style=\"margin: 0 0 8px; font-weight: bold; color: #394f6d;\">Quick answer<\/p>\n<ul style=\"margin: 0; padding-left: 20px;\">\n<li><strong>On the server:<\/strong> install IIS, then the <strong>.NET Hosting Bundle<\/strong>, which adds the .NET runtime and the ASP.NET Core Module that connects IIS to your app.<\/li>\n<li><strong>On your PC:<\/strong> publish the app with <code>dotnet publish -c Release<\/code> and copy the output to the server.<\/li>\n<li><strong>In IIS:<\/strong> create a site with its own application pool set to <strong>No Managed Code<\/strong>.<\/li>\n<li><strong>If it fails:<\/strong> the error code (500.30, 500.31, 502.5 and so on) tells you where to look. See the troubleshooting table below.<\/li>\n<\/ul>\n<\/div>\n<h2>.NET 11 or .NET 10: Which Should You Host?<\/h2>\n<p>.NET 11 is a <strong>Standard Term Support (STS)<\/strong> release with two years of support. .NET 10, released in November 2025, is a <strong>Long Term Support (LTS)<\/strong> release with three years of support. Because of the timing, both are supported until around November 2028, so choosing .NET 11 doesn&#8217;t shorten your support window.<\/p>\n<div style=\"overflow-x: auto;\">\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>.NET 10 (LTS)<\/th>\n<th>.NET 11 (STS)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Released<\/td>\n<td>November 2025<\/td>\n<td>November 2026<\/td>\n<\/tr>\n<tr>\n<td>Support length<\/td>\n<td>3 years<\/td>\n<td>2 years<\/td>\n<\/tr>\n<tr>\n<td>Language version<\/td>\n<td>C# 14<\/td>\n<td>C# 15 (union types, closed hierarchies and more)<\/td>\n<\/tr>\n<tr>\n<td>Best for<\/td>\n<td>Apps you want to leave alone for a long time<\/td>\n<td>New projects, and apps that want the newest features and performance improvements<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Good to know:<\/strong> you can host .NET 10 and .NET 11 apps on the same server. The runtimes install side by side, and each app uses the version it was built for. The steps in this guide are the same for both.<\/p>\n<h2>How ASP.NET Core Runs on IIS<\/h2>\n<p>IIS doesn&#8217;t run .NET code by itself. The <strong>ASP.NET Core Module (ANCM)<\/strong>, installed by the Hosting Bundle, starts your app and passes requests to it. By default it uses the <strong>in-process<\/strong> model: your app runs inside the IIS worker process (<code>w3wp.exe<\/code>), which is the fastest option.<\/p>\n<p>This matters when troubleshooting: most errors come from the module failing to find the runtime, load your app or start it in time, and each failure has its own error code.<\/p>\n<h2>What You Need<\/h2>\n<ul>\n<li><strong>A Windows Server<\/strong> (2019, 2022 or 2025) with administrator access, such as a Windows VPS.<\/li>\n<li><strong>The .NET 11 SDK on your development PC<\/strong> to build and publish the app.<\/li>\n<li><strong>A domain name<\/strong> pointing to the server&#8217;s IP address (an A record), if the site will be public.<\/li>\n<\/ul>\n<p>All scripts below run in <strong>Windows PowerShell as Administrator<\/strong> on the server (right-click PowerShell and choose <strong>Run as administrator<\/strong>).<\/p>\n<p><strong>Prefer to download the scripts?<\/strong> <a href=\"https:\/\/blog.winserver.net\/wp-content\/uploads\/2026\/11\/dotnet11-iis-scripts.zip\">Download dotnet11-iis-scripts.zip<\/a>, which contains all four scripts from this guide. The full code is also shown below, so you can read exactly what each one does before running it.<\/p>\n<h2>Step 1: Install IIS and the .NET Hosting Bundle<\/h2>\n<p>This script installs IIS, downloads the current Hosting Bundle directly from Microsoft, installs it silently, restarts IIS and shows what was installed:<\/p>\n<pre><code class=\"language-powershell\"># Installs IIS and the latest .NET Hosting Bundle, then checks the result.\r\n# Run in Windows PowerShell as Administrator.\r\n\r\n# 1. Install IIS (Web Server role) with management tools\r\nInstall-WindowsFeature -Name Web-Server, Web-WebSockets -IncludeManagementTools\r\n\r\n# 2. Download the current .NET Hosting Bundle from Microsoft\r\n$installer = \"$env:TEMP\\dotnet-hosting-win.exe\"\r\nInvoke-WebRequest -Uri \"https:\/\/dotnet.microsoft.com\/permalink\/dotnetcore-current-windows-runtime-bundle-installer\" `\r\n  -OutFile $installer -UseBasicParsing\r\n\r\n# 3. Install it silently (64-bit only)\r\n$p = Start-Process -FilePath $installer -ArgumentList \"\/install\", \"\/quiet\", \"\/norestart\", \"OPT_NO_X86=1\" -Wait -PassThru\r\n\"Hosting Bundle installer exit code: $($p.ExitCode)  (0 = success, 3010 = success, restart needed)\"\r\n\r\n# 4. Restart IIS so it loads the ASP.NET Core Module\r\nnet stop was \/y\r\nnet start w3svc\r\n\r\n# 5. Check what was installed\r\n&amp; \"$env:ProgramFiles\\dotnet\\dotnet.exe\" --list-runtimes\r\nImport-Module WebAdministration\r\nGet-WebGlobalModule | Where-Object Name -like \"AspNetCoreModule*\" | Select-Object Name, Image<\/code><\/pre>\n<p>At the end, you should see <code>Microsoft.AspNetCore.App 11.0.x<\/code> in the runtime list and <code>AspNetCoreModuleV2<\/code> in the module list.<\/p>\n<p><strong>Important:<\/strong> install IIS <strong>before<\/strong> the Hosting Bundle. If the bundle was installed first, run the installer again to repair it, or IIS won&#8217;t have the ASP.NET Core Module.<\/p>\n<p><strong>Need a specific version?<\/strong> The script downloads the current release. For a particular version (for example, to host a .NET 10 app only), download the <strong>Hosting Bundle<\/strong> installer from the .NET download page for that version and run it the same way.<\/p>\n<h2>Step 2: Publish Your App<\/h2>\n<p>On your <strong>development PC<\/strong>, make sure the project targets .NET 11. In your <code>.csproj<\/code> file:<\/p>\n<pre><code class=\"language-xml\">&lt;TargetFramework&gt;net11.0&lt;\/TargetFramework&gt;<\/code><\/pre>\n<p>Then publish it:<\/p>\n<pre><code class=\"language-powershell\">dotnet publish -c Release -o .\\publish<\/code><\/pre>\n<p>The <code>publish<\/code> folder now contains everything the server needs, including a <code>web.config<\/code> file that tells IIS to use the ASP.NET Core Module. You don&#8217;t need to write <code>web.config<\/code> yourself.<\/p>\n<p><strong>Just testing?<\/strong> Create a sample app first:<\/p>\n<pre><code class=\"language-powershell\">dotnet new webapp -o MyApp\r\ncd MyApp\r\ndotnet publish -c Release -o .\\publish<\/code><\/pre>\n<p>Copy the <code>publish<\/code> folder to the server, for example to <code>C:\\deploy\\publish<\/code>. Over Remote Desktop, you can zip it and paste it into the session, or copy it through a shared drive.<\/p>\n<h2>Step 3: Create the IIS Site and Application Pool<\/h2>\n<p>Change the three values at the top, then run:<\/p>\n<pre><code class=\"language-powershell\"># Creates an IIS site and application pool for an ASP.NET Core app.\r\n# Run in Windows PowerShell as Administrator. Change the three values below.\r\n\r\n$SiteName = \"MyApp\"                  # name for the IIS site and app pool\r\n$HostName = \"app.example.com\"        # your domain name\r\n$SitePath = \"C:\\inetpub\\$SiteName\"   # where the app's files will live\r\n\r\nImport-Module WebAdministration\r\n\r\n# Folder for the app, with a logs folder for troubleshooting\r\nNew-Item -ItemType Directory -Force -Path \"$SitePath\\logs\" | Out-Null\r\n\r\n# Application pool: \"No Managed Code\", always running, no idle shutdown\r\nNew-WebAppPool -Name $SiteName | Out-Null\r\nSet-ItemProperty \"IIS:\\AppPools\\$SiteName\" -Name managedRuntimeVersion -Value \"\"\r\nSet-ItemProperty \"IIS:\\AppPools\\$SiteName\" -Name startMode -Value \"AlwaysRunning\"\r\nSet-ItemProperty \"IIS:\\AppPools\\$SiteName\" -Name processModel.idleTimeout -Value ([TimeSpan]::Zero)\r\n\r\n# Let the app pool read the app and write to the logs folder\r\nicacls $SitePath \/grant \"IIS AppPool\\${SiteName}:(OI)(CI)RX\" | Out-Null\r\nicacls \"$SitePath\\logs\" \/grant \"IIS AppPool\\${SiteName}:(OI)(CI)M\" | Out-Null\r\n\r\n# Site on port 80 for your domain name\r\nNew-Website -Name $SiteName -PhysicalPath $SitePath -ApplicationPool $SiteName `\r\n  -Port 80 -HostHeader $HostName | Out-Null\r\n\r\nGet-Website -Name $SiteName | Select-Object Name, State, PhysicalPath, Bindings<\/code><\/pre>\n<p>What the settings do:<\/p>\n<ul>\n<li><strong>No Managed Code<\/strong> (<code>managedRuntimeVersion<\/code> empty): the app pool doesn&#8217;t load the old .NET Framework. ASP.NET Core brings its own runtime.<\/li>\n<li><strong>AlwaysRunning and no idle timeout:<\/strong> IIS normally shuts down an app after 20 minutes without visitors, so the next visitor waits while it starts again. These settings keep it running.<\/li>\n<li><strong>One app pool per app:<\/strong> IIS can only run one in-process ASP.NET Core app per worker process. Sharing a pool causes error 500.35.<\/li>\n<li><strong>Permissions:<\/strong> the app pool gets read access to the app and write access to the <code>logs<\/code> folder only.<\/li>\n<\/ul>\n<h2>Step 4: Deploy the App and Test It<\/h2>\n<p>For the first deployment, copy the files into the site folder:<\/p>\n<pre><code class=\"language-powershell\">robocopy C:\\deploy\\publish C:\\inetpub\\MyApp \/E<\/code><\/pre>\n<p>Then run this health check. It changes nothing, but shows the installed runtimes, the module, the site and app pool state, a test request, and any recent errors from the ASP.NET Core Module:<\/p>\n<pre><code class=\"language-powershell\"># Health check for an ASP.NET Core app on IIS. Changes nothing.\r\n# Run in Windows PowerShell as Administrator.\r\n\r\n$SiteName = \"MyApp\"\r\n$HostName = \"app.example.com\"\r\n\r\nImport-Module WebAdministration\r\n\r\n\"--- Installed ASP.NET Core runtimes ---\"\r\n&amp; \"$env:ProgramFiles\\dotnet\\dotnet.exe\" --list-runtimes | Select-String \"AspNetCore\"\r\n\r\n\"--- ASP.NET Core Module ---\"\r\n$ancm = Get-WebGlobalModule | Where-Object Name -eq \"AspNetCoreModuleV2\"\r\nif ($ancm) { \"Installed\" } else { \"MISSING: install or repair the .NET Hosting Bundle\" }\r\n\r\n\"--- Site and app pool ---\"\r\nGet-Website -Name $SiteName | Select-Object Name, State, PhysicalPath\r\nGet-WebAppPoolState -Name $SiteName\r\n\r\n\"--- Test request from the server ---\"\r\ntry {\r\n  $r = Invoke-WebRequest -Uri \"http:\/\/localhost\/\" -Headers @{ Host = $HostName } -UseBasicParsing -TimeoutSec 30\r\n  \"HTTP $($r.StatusCode): the app is responding\"\r\n} catch {\r\n  \"Request failed: $($_.Exception.Message)\"\r\n}\r\n\r\n\"--- Latest ASP.NET Core Module events ---\"\r\nGet-WinEvent -FilterHashtable @{ LogName = \"Application\"; ProviderName = \"IIS AspNetCore Module V2\" } `\r\n  -MaxEvents 5 -ErrorAction SilentlyContinue |\r\n  Format-List TimeCreated, LevelDisplayName, Message<\/code><\/pre>\n<p>If the test request returns <code>HTTP 200<\/code>, your app is running. Once your domain&#8217;s DNS points to the server, open <code>http:\/\/app.example.com<\/code> in a browser.<\/p>\n<h2>Step 5: Add HTTPS<\/h2>\n<p><strong>Open the web ports in Windows Firewall<\/strong> if they aren&#8217;t open already:<\/p>\n<pre><code class=\"language-powershell\">New-NetFirewallRule -DisplayName \"Web HTTP and HTTPS\" -Direction Inbound -Protocol TCP -LocalPort 80,443 -Action Allow<\/code><\/pre>\n<p><strong>Get a certificate.<\/strong> A free ACME client for Windows, such as win-acme, can request a Let&#8217;s Encrypt certificate and add the HTTPS binding in IIS automatically, including renewals. That&#8217;s the easiest option for most sites.<\/p>\n<p><strong>If you already have a certificate<\/strong> in the server&#8217;s certificate store, add the HTTPS binding yourself:<\/p>\n<pre><code class=\"language-powershell\">Import-Module WebAdministration\r\n$SiteName = \"MyApp\"\r\n$HostName = \"app.example.com\"\r\n\r\n$cert = Get-ChildItem Cert:\\LocalMachine\\My |\r\n  Where-Object { $_.DnsNameList.Unicode -contains $HostName -and $_.NotAfter -gt (Get-Date) } |\r\n  Sort-Object NotAfter -Descending | Select-Object -First 1\r\n\r\nNew-WebBinding -Name $SiteName -Protocol https -Port 443 -HostHeader $HostName -SslFlags 1\r\n(Get-WebBinding -Name $SiteName -Protocol https -HostHeader $HostName).AddSslCertificate($cert.Thumbprint, \"My\")<\/code><\/pre>\n<p><code>-SslFlags 1<\/code> turns on SNI, which lets several HTTPS sites share one IP address. If your app calls <code>app.UseHttpsRedirection()<\/code> (the templates do), visitors are sent to HTTPS automatically once the binding exists.<\/p>\n<p>Before changing firewall rules on a VPS, read <span style=\"color: #000000;\"><strong><a href=\"https:\/\/www.winserver.net\/blog\/windows-vps-firewall-rules-remote-access\/\" style=\"color: #000000;\">how to configure firewall rules on a Windows VPS without breaking remote access<\/a>.<\/strong><\/span><\/p>\n<h2>Step 6: Deploy Updates Without Errors<\/h2>\n<p>Copying new files over a running app often fails with &#8220;file in use&#8221; errors, because the app has its DLLs open. The ASP.NET Core Module has a built-in fix: when a file called <code>app_offline.htm<\/code> is in the site folder, it stops the app, releases the files and shows that page to visitors.<\/p>\n<p>This script uses it to deploy a new version safely:<\/p>\n<pre><code class=\"language-powershell\"># Deploys a new version of the app with no locked-file errors.\r\n# Run in Windows PowerShell as Administrator.\r\n\r\n$Source   = \"C:\\deploy\\publish\"      # folder with your new \"dotnet publish\" output\r\n$SitePath = \"C:\\inetpub\\MyApp\"       # the IIS site folder\r\n\r\n# 1. Take the app offline: the ASP.NET Core Module stops the app and releases its files\r\nSet-Content -Path \"$SitePath\\app_offline.htm\" -Value \"&lt;h1&gt;Updating. Back in a moment.&lt;\/h1&gt;\"\r\nStart-Sleep -Seconds 5\r\n\r\n# 2. Copy the new files. Keeps the logs folder and the offline page.\r\nrobocopy $Source $SitePath \/MIR \/XD \"$SitePath\\logs\" \/XF app_offline.htm \/R:2 \/W:2 \/NFL \/NDL\r\n\r\n# 3. Bring the app back online\r\nRemove-Item \"$SitePath\\app_offline.htm\"\r\n\"Deployed. Robocopy exit code $LASTEXITCODE (0-7 = OK, 8 or higher = errors).\"<\/code><\/pre>\n<p>Visitors see the &#8220;Updating&#8221; page for a few seconds while the files are copied.<\/p>\n<p><strong>Careful with <code>\/MIR<\/code>:<\/strong> it makes the site folder an exact copy of the publish folder, so it deletes files on the server that aren&#8217;t in your publish output. If you keep server-only files there, such as <code>appsettings.Production.json<\/code>, include them in your publish output or add them to the <code>\/XF<\/code> list.<\/p>\n<p>To automate this, run the script from a CI pipeline. See<span style=\"color: #000000;\"><strong> <a href=\"https:\/\/www.winserver.net\/blog\/github-actions-self-hosted-runner-windows-vps\/\" style=\"color: #000000;\">how to set up a GitHub Actions self-hosted runner on a Windows VPS<\/a>.<\/strong><\/span><\/p>\n<h2>Upgrading an Existing App from .NET 10 to .NET 11<\/h2>\n<ol>\n<li><strong>Update the project:<\/strong> change <code>&lt;TargetFramework&gt;net10.0&lt;\/TargetFramework&gt;<\/code> to <code>net11.0<\/code>, and update your NuGet packages (for example, <code>Microsoft.EntityFrameworkCore<\/code>) to their 11.x versions.<\/li>\n<li><strong>Check breaking changes:<\/strong> read Microsoft&#8217;s list of breaking changes in .NET 11, build, and run your tests.<\/li>\n<li><strong>Install the .NET 11 Hosting Bundle on the server<\/strong> (Step 1). Your existing .NET 10 apps keep working, because the runtimes install side by side.<\/li>\n<li><strong>Publish and deploy<\/strong> the upgraded app with the Step 6 script, then run the health check.<\/li>\n<\/ol>\n<p>If something goes wrong, redeploy the previous .NET 10 build. The .NET 10 runtime is still on the server, so rolling back is just a file copy.<\/p>\n<h2>Troubleshooting<\/h2>\n<h3>First: find the real error<\/h3>\n<p>IIS error pages only show a code. The actual cause is usually in one of two places:<\/p>\n<ul>\n<li><strong>The Windows Event Log:<\/strong> run the health check script from Step 4. It shows the latest events from the <strong>IIS AspNetCore Module V2<\/strong> source, which usually include the exception message.<\/li>\n<li><strong>The stdout log:<\/strong> edit <code>web.config<\/code> in the site folder and set <code>stdoutLogEnabled=\"true\"<\/code> and <code>stdoutLogFile=\".\\logs\\stdout\"<\/code>, then load the page again and check the <code>logs<\/code> folder. Turn it off afterwards, because these logs have no size limit.<\/li>\n<\/ul>\n<p>You can also run the app directly to see startup errors in the console:<\/p>\n<pre><code class=\"language-powershell\">cd C:\\inetpub\\MyApp\r\ndotnet .\\MyApp.dll<\/code><\/pre>\n<h3>Common error codes<\/h3>\n<div style=\"overflow-x: auto;\">\n<table>\n<thead>\n<tr>\n<th>Error<\/th>\n<th>What it means<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>500.19<\/strong> Internal Server Error<\/td>\n<td>IIS can&#8217;t read <code>web.config<\/code>, usually because the ASP.NET Core Module isn&#8217;t installed<\/td>\n<td>Install or repair the Hosting Bundle (Step 1), then restart IIS.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.30<\/strong> App failed to start<\/td>\n<td>The app threw an error during startup, for example a bad connection string or missing setting<\/td>\n<td>Check the event log or stdout log for the exception, then fix the configuration.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.31<\/strong> Failed to load ASP.NET Core runtime<\/td>\n<td>The .NET version the app targets isn&#8217;t installed<\/td>\n<td>Install the matching Hosting Bundle, or check with <code>dotnet --list-runtimes<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.32<\/strong> Failed to load dll<\/td>\n<td>32-bit\/64-bit mismatch between the app and the app pool<\/td>\n<td>Set <strong>Enable 32-Bit Applications<\/strong> to False on the app pool, or republish for the right platform.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.35<\/strong> Multiple in-process applications<\/td>\n<td>Two ASP.NET Core apps share one app pool<\/td>\n<td>Give each app its own app pool.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.37<\/strong> Failed to start within time limit<\/td>\n<td>Startup took longer than 120 seconds<\/td>\n<td>Check for slow startup work (database migrations, external calls) and server CPU or memory pressure.<\/td>\n<\/tr>\n<tr>\n<td><strong>500.38<\/strong> Application DLL not found<\/td>\n<td>The app was published as a single file, which in-process hosting doesn&#8217;t support<\/td>\n<td>Publish without <code>PublishSingleFile<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><strong>502.5<\/strong> Process failure<\/td>\n<td>The out-of-process version of a startup failure: the app&#8217;s process couldn&#8217;t start<\/td>\n<td>Same checks as 500.30 and 500.31: logs first, then installed runtimes.<\/td>\n<\/tr>\n<tr>\n<td><strong>503<\/strong> Service Unavailable<\/td>\n<td>The app pool has stopped, often after repeated crashes<\/td>\n<td>Fix the underlying error, then start the pool: <code>Start-WebAppPool -Name MyApp<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><strong>403.14<\/strong> Forbidden<\/td>\n<td>IIS is looking at a folder without your app in it<\/td>\n<td>Check the site&#8217;s physical path and that <code>web.config<\/code> and your DLLs were copied.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;File in use&#8221; when copying<\/td>\n<td>The running app has its files open<\/td>\n<td>Use the <code>app_offline.htm<\/code> deploy script in Step 6.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Tips for Running ASP.NET Core on a Windows VPS<\/h2>\n<ul>\n<li><strong>Set the environment:<\/strong> IIS apps run as <code>Production<\/code> by default. To change it for one site, add an <code>ASPNETCORE_ENVIRONMENT<\/code> environment variable in <code>web.config<\/code> or in IIS Manager&#8217;s Configuration Editor.<\/li>\n<li><strong>Keep secrets out of files you publish:<\/strong> use environment variables or a secrets store for connection strings and API keys.<\/li>\n<li><strong>Keep the Hosting Bundle updated:<\/strong> Microsoft releases monthly .NET security updates. Installing the latest Hosting Bundle updates both the runtime and the module.<\/li>\n<li><strong>Plan your memory:<\/strong> Windows Server, IIS and a small ASP.NET Core app run comfortably on 4 GB of RAM. Add more for databases or several apps.<\/li>\n<li><strong>Moving from another server?<\/strong> See our <span style=\"color: #000000;\"><strong><a href=\"https:\/\/www.winserver.net\/blog\/how-to-migrate\/\" style=\"color: #000000;\">step-by-step checklist for migrating a Windows Server to a new VPS<\/a>.<\/strong><\/span><\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>Q1. What is the .NET Hosting Bundle?<\/h3>\n<p>An installer that adds the .NET runtime, the ASP.NET Core runtime and the ASP.NET Core Module to a server. The module is what lets IIS run ASP.NET Core apps. You need it on the server, but not the full SDK.<\/p>\n<h3>Q2. Do I need the .NET SDK on the server?<\/h3>\n<p>No. Build and publish on your development PC, then copy the published files to the server. The server only needs the Hosting Bundle.<\/p>\n<h3>Q3. Can I run .NET 10 and .NET 11 apps on the same server?<\/h3>\n<p>Yes. Runtimes install side by side, and each app uses the version it targets. Give each app its own application pool.<\/p>\n<h3>Q4. Should I upgrade to .NET 11 or stay on .NET 10?<\/h3>\n<p>Both are supported until around November 2028. Choose .NET 11 for new features and performance improvements or stay on .NET 10 if your app is stable and you&#8217;d rather not change it.<\/p>\n<h3>Q5. Why does my app show &#8220;HTTP Error 500.30&#8221;?<\/h3>\n<p>The app threw an error while starting. Check the Windows Application event log (source <strong>IIS AspNetCore Module V2<\/strong>) or enable the stdout log to see the actual exception. Common causes are missing configuration, a wrong connection string or missing file permissions.<\/p>\n<h3>Q6. Why does the first visit after a while load slowly?<\/h3>\n<p>By default, IIS stops idle apps after 20 minutes. Set the app pool&#8217;s start mode to <strong>AlwaysRunning<\/strong> and its idle timeout to 0, as in the Step 3 script.<\/p>\n<h3>Q7. In-process or out-of-process hosting?<\/h3>\n<p>In-process (the default) is faster, because the app runs inside the IIS worker process. Out-of-process runs the app as a separate process behind IIS, which some older setups need. Stick with the default unless you have a reason to change it.<\/p>\n<h3>Q8. Can I host ASP.NET Core without IIS?<\/h3>\n<p>Yes, by running the app with its built-in Kestrel web server as a Windows service. IIS adds certificate management, multiple sites on one IP address, automatic restarts and familiar management tools, which is why it&#8217;s the usual choice on Windows Server.<\/p>\n<p><strong>Sources:<\/strong> Microsoft Learn: <a href=\"https:\/\/learn.microsoft.com\/aspnet\/core\/host-and-deploy\/iis\/hosting-bundle\" target=\"_blank\" rel=\"noopener\">The .NET Hosting Bundle<\/a>, <a href=\"https:\/\/learn.microsoft.com\/aspnet\/core\/tutorials\/publish-to-iis\" target=\"_blank\" rel=\"noopener\">Publish an ASP.NET Core app to IIS<\/a>, <a href=\"https:\/\/learn.microsoft.com\/aspnet\/core\/test\/troubleshoot-azure-iis\" target=\"_blank\" rel=\"noopener\">Troubleshoot ASP.NET Core on Azure App Service and IIS<\/a>; .NET Blog: <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/?p=61205\" target=\"_blank\" rel=\"noopener\">Announcing .NET 11<\/a><\/p>\n<section class=\"winserver-cta-section\">\n<h2>Host Your .NET Apps on a Windows VPS<\/h2>\n<p>Winserver&#8217;s Windows VPS plans include the Windows Server license and full administrator access, so you can install IIS and the .NET Hosting Bundle in minutes. English support is included.<\/p>\n<div class=\"winserver-cta-button-wrapper\"><span style=\"color: #ffffff;\"><a href=\"https:\/\/www.winserver.net\/#pricing\" class=\"winserver-cta-button\" target=\"_blank\" rel=\"noopener\" style=\"color: #ffffff;\">View Windows VPS Plans<\/a><\/span><\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Last updated: November 13, 2026 Microsoft released .NET 11 on November 10, 2026, along with C# 15. If you build web apps or APIs with ASP.NET Core, the natural place to run them on Windows is IIS, the web server built into Windows Server. IIS handles domains, HTTPS certificates, restarts and logging, while your app [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1537,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[372],"tags":[394,395,396,397,398,15,377,8,38],"_links":{"self":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1530"}],"collection":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/comments?post=1530"}],"version-history":[{"count":1,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1530\/revisions"}],"predecessor-version":[{"id":1532,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1530\/revisions\/1532"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/media\/1537"}],"wp:attachment":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/media?parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/categories?post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/tags?post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}