ASP.NET powers many business systems in India, from internal portals to customer-facing applications. Classic ASP.NET (on .NET Framework) requires Windows and IIS; modern ASP.NET Core runs on Windows or Linux. This guide focuses on hosting both properly on a Windows VPS with IIS.
ASP.NET Framework or ASP.NET Core?
| ASP.NET (.NET Framework) | ASP.NET Core (.NET 6/8 and later) | |
|---|---|---|
| Operating system | Windows only | Windows, Linux, macOS |
| Hosting on IIS | Native integrated pipeline | Via the ASP.NET Core Module (in-process or out-of-process) |
| Typical use | Existing Web Forms, MVC 5, WCF systems | New applications and migrated apps |
Step 1: Install IIS
# PowerShell as Administrator
Install-WindowsFeature Web-Server, Web-Asp-Net45, Web-Mgmt-Console, Web-Http-Redirect -IncludeManagementTools
Include only the role services you need. For ASP.NET Core, IIS itself plus the Hosting Bundle is sufficient; classic ASP.NET needs the ASP.NET 4.x features.
Step 2: Install the .NET Hosting Bundle (ASP.NET Core)
Download the .NET Hosting Bundle for your app's runtime version from Microsoft and install it after IIS; it installs the runtime and the ASP.NET Core Module. Restart IIS afterwards (iisreset). Install each runtime version your apps target.
Step 3: Create the Site and Application Pool
- Create a folder such as
D:\sites\app.example.com. - In IIS Manager, add a site bound to
app.example.comon port 80 initially. - Create a dedicated application pool: for ASP.NET Core set ".NET CLR version" to "No Managed Code"; for classic ASP.NET choose v4.0.
- Run the pool under its virtual identity (
IIS AppPool\YourPool) and grant it read access to the site folder and write access only where the app writes (logs, uploads).
Step 4: HTTPS
Use a certificate from a commercial CA or a free Let's Encrypt certificate via a Windows ACME client (such as win-acme), which creates the HTTPS binding and renews automatically. Add an HTTP-to-HTTPS redirect (URL Rewrite module) and enable HSTS once everything works. Disable old protocols (TLS 1.0/1.1) using the server's SChannel settings or a reputable tool.
Step 5: Deploy
- Folder deployment:
dotnet publish -c Release, copy output to the site folder. Useapp_offline.htmto stop the app cleanly during the copy. - Web Deploy: publish from Visual Studio or CI to the server's Web Deploy endpoint (restrict it by IP).
- CI pipeline: a self-hosted runner on the server, or a deploy step over a secure channel, publishing on each release.
Keep configuration secrets in environment variables or protected configuration, not in appsettings.json in source control.
Step 6: The Database
Most ASP.NET apps use SQL Server. Install SQL Server Express (free, with size limits) or a licensed edition on the same server for small apps, keep it accessible only locally, and use a dedicated SQL login or Windows identity with least privilege for the app (see our SQL Server guide).
Hardening IIS
- Remove unused role services and modules.
- Remove the
ServerandX-Powered-Byheaders; setcustomErrorsor ASP.NET Core error handling so stack traces are never shown. - Request filtering limits for request size and verbs.
- Separate application pools per site.
- Windows Firewall allowing only 80, 443 and RDP from restricted IPs.
- Windows Update and .NET runtime updates applied regularly.
Monitoring and Logs
IIS logs live in C:\inetpub\logs\LogFiles; schedule cleanup so they do not fill the disk. Use the app's logging (Serilog, NLog or built-in providers) to files or a central system, watch the Windows Event Log for application pool crashes, and add an external uptime check on a health endpoint.
Performance Tips
- Enable dynamic and static compression in IIS.
- Use output caching and response caching where appropriate.
- For ASP.NET Core, prefer the in-process hosting model for throughput.
- Set the application pool's start mode to AlwaysRunning and enable preload to avoid slow first requests after recycling.
The Linux Option for ASP.NET Core
ASP.NET Core runs well on Linux behind Nginx with Kestrel. If your app does not depend on Windows-specific features, an AMD EPYC Linux VPS gives more resources per rupee and avoids Windows licensing (see our Linux vs Windows guide). Classic ASP.NET on .NET Framework stays on Windows.
Sizing
| Deployment | Plan |
|---|---|
| Small ASP.NET site with SQL Server Express | RDP Plan 1 (8 GB) or Plan 2 (16 GB) |
| Business application with moderate traffic | RDP Plan 2 or 3 |
| Several apps and a larger database | RDP Plan 4 (32 GB) |
In Short
Install only the IIS features you need, isolate each app in its own pool with least privilege, use HTTPS everywhere, keep SQL Server private, deploy repeatably and monitor logs and health.
Hosting Several Applications
One IIS server can host many ASP.NET sites. Give each its own site, host-name binding, application pool and folder, so one application's memory leak or crash does not affect the others and each can be recycled independently. Use separate databases and logins per application. Watch total memory as you add sites; each application pool runs its own process.
Next Steps
Decide whether your app needs Windows (classic ASP.NET) or could move to Linux (ASP.NET Core), choose a plan for the app and database, and script the IIS setup so a replacement server can be built quickly.
SkyRainCloud Plans for This Workload
ASP.NET Framework apps need Windows: RDP Plan 2 (6 vCores, 16 GB) suits an app with SQL Server Express. ASP.NET Core can also run on Linux, where the EPYC VPS plans offer more resources per rupee.
Windows RDP
Windows RDP servers in India with full Administrator access and a 1 Gbps unmetered uplink.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| RDP Plan 1 | 4 | 8 GB DDR4 | 60 GB Enterprise Disk | 1 Gbps, unmetered | ₹999/month | Data entry, virtual assistants, one MetaTrader terminal | Order |
| RDP Plan 2 | 6 | 16 GB DDR4 | 80 GB Enterprise Disk | 1 Gbps, unmetered | ₹1,799/month | Tally Prime for small teams, several browser profiles or terminals | Order |
| RDP Plan 3 | 8 | 24 GB DDR4 | 120 GB Enterprise Disk | 1 Gbps, unmetered | ₹2,499/month | Multi-user remote work, automation and SEO tools | Order |
| RDP Plan 4 | 12 | 32 GB DDR4 | 160 GB Enterprise Disk | 1 Gbps, unmetered | ₹3,499/month | Remote teams, large ERP datasets, many concurrent sessions | Order |
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.