ASP to .NET migration, route by route: classic ASP and ASP.NET to ASP.NET Core

Somewhere in your stack there's a login page nobody has touched since 2011. It runs on IIS, it still works, and the last person who understood its Global.asax left three reorganizations ago. Now someone wants it on ASP.NET Core before the next audit.
That's an ASP to .NET migration, and the C# is rarely what slows it down. The drag comes from everything the old app quietly leaned on: System.Web, session locking, Membership tables and HTTP modules. Classic ASP adds VBScript, a scripting language Windows has already started to retire. Below are the prerequisites, then the steps for each starting point, then the blockers that stall teams halfway through.
Before you start an ASP to .NET migration
Three decisions come before any code moves: where you're starting, which .NET version you're landing on and whether the old app stays live during the move.
Name your starting point
People use "ASP to .NET" loosely. It covers four different jobs, and only three of them are real migrations.
| You run today | What it is | Where it should land | Type of work |
|---|---|---|---|
Classic ASP (.asp files) |
Scripts interpreted by IIS, usually VBScript, often calling COM components | ASP.NET Core on .NET 10, typically Razor Pages or MVC | Full rewrite of the code, reuse of the database and business rules |
ASP.NET Web Forms (.aspx) |
Event-driven pages on .NET Framework | Blazor or Razor Pages on ASP.NET Core | UI rebuild, business logic ported |
| ASP.NET MVC or Web API on .NET Framework | Controllers and views on System.Web |
ASP.NET Core MVC, Razor Pages or minimal APIs | Port with targeted rewrites |
| ASP.NET Core on .NET 8 or 9 | Already modern .NET | .NET 10 LTS | Version upgrade |
This guide stays on the web layer. Retargeting class libraries and converting to SDK-style projects are covered in our .NET Framework to .NET Core step-by-step plan.
Land on .NET 10, and know which dates matter
Nothing forces a working ASP.NET Framework app off Windows tomorrow. A few dates still shape the plan, and one of them is close.
| Platform | Support status (checked October 2026) | Source |
|---|---|---|
| .NET 10 (LTS) | Released November 11, 2025; supported until November 14, 2028 | .NET support policy |
| .NET 8 (LTS) and .NET 9 (STS) | Both end support on November 10, 2026 | .NET support policy |
| .NET Framework 4.6.2 | Retires January 12, 2027 | .NET Framework lifecycle |
| .NET Framework 4.7 to 4.8.1 | No end date listed; follows the Component Lifecycle Policy of the Windows version it runs on | .NET Framework lifecycle |
| VBScript (the default classic ASP language) | Deprecated in Windows client in October 2023; planned to become a feature on demand before removal | Deprecated Windows features |
If you stopped on ASP.NET Core 8 or 9, the upgrade to .NET 10 is short and the support gap after November 10 isn't. Do that one now. A .NET Framework 4.8 app, by contrast, isn't on a cliff edge. The cost of staying is slower: every year on it is a year your team maintains two web stacks and two sets of skills.
Classic ASP sits in a grayer spot. The IIS <asp> configuration reference lists VBScript as its default script language. Microsoft's VBScript notice, though, is written for Windows client rather than the IIS ASP module. Treat it as the direction of travel, not a shutdown date, and don't build a 2030 roadmap on top of it.
Decide whether the old app stays live
Microsoft's quick decision guide comes down to risk tolerance and size. Incremental migration suits large production apps, apps that can't go offline, and apps with heavy System.Web use or unknown dependencies. Microsoft describes it as an implementation of the strangler fig pattern. An in-place migration can work for small to medium apps with few dependencies, with the warning that small issues compound when you do it all at once.
In practice, the incremental route looks like this. A new ASP.NET Core app goes in front of the old one. YARP (Yet Another Reverse Proxy) forwards any route the new app doesn't handle yet back to the old app, and each sprint moves another slice across. The System.Web adapters (Microsoft.AspNetCore.SystemWebAdapters) let both apps share session and authentication, so a user who signed in on an old page stays signed in on a new one. Nobody schedules a weekend cutover for a system with 200 routes and a decade of edge cases.
Check it's worth doing this year
The gains are concrete. Microsoft's ASP.NET Core overview lists cross-platform hosting on the Kestrel web server, so Linux containers become an option. Dependency injection, environment-based configuration and logging are built in, as are authentication, authorization and data protection. Blazor, minimal APIs and gRPC cover new UI and service work. Mostly, though, you get to hire for, patch and deploy one web stack instead of two.
Some apps should still wait. Microsoft's own Web Forms guide says Web Forms stays supported for as long as .NET Framework ships with Windows. An app scheduled for retirement within a year or two is better kept patched on .NET Framework 4.8.1. A vendor product moves on the vendor's roadmap, not yours. And if nobody can describe what an app does, write that spec first, because you can't prove parity against behavior nobody documented.
Classic ASP to ASP.NET Core: rewrite, don't convert
Searches for "migrating ASP to ASP.NET" and "ASP to .NET conversion" usually come from teams hoping for a converter. There isn't a clean one. Classic ASP pages mix HTML, VBScript, include files and COM objects in a single file, and ASP.NET Core shares none of that runtime. You can reuse the database, the business rules and the URL structure. The code itself gets rewritten in C#.
Skip ASP.NET Framework entirely. Moving classic ASP to Web Forms or MVC on .NET Framework just schedules a second migration for later. Rewrite once, onto ASP.NET Core on .NET 10. Razor Pages is often the most natural fit, because its one-page, one-handler model looks a lot like an .asp file with the logic pulled out.
- Inventory every page, include file and COM component. Classic ASP apps tend to hide business logic in
#includefiles and registered COM DLLs. Each COM object needs a .NET equivalent or a wrapper decision. - Write down the business rules before writing new code. Record what each page validates, calculates and writes to the database. That list becomes your parity checklist.
- Rebuild data access deliberately. Inline SQL in recordsets is common in legacy ASP. Move it to parameterized queries through Entity Framework Core (EF Core) or ADO.NET, and check the results against the old pages with real records.
- Keep the URLs. Map old
.asppaths to new routes or redirects so bookmarks, integrations and search rankings survive. - Run old and new side by side. YARP can send rewritten routes to the new app and everything else to the old IIS site.
Step 5 has one gap. The System.Web adapters are built for ASP.NET Framework apps, so they won't share classic ASP session state. Plan how users stay signed in while both apps run, usually with a shared authentication cookie or a short re-login at the boundary.
No migration tool converts classic ASP. AI coding assistants can speed up the repetitive parts of the rewrite, but the inventory and the parity tests stay with your team.
How to migrate ASP.NET to ASP.NET Core, step by step
These steps follow Microsoft's incremental migration guidance, with the web-specific decisions called out. You're replacing the hosting model, the request pipeline and several built-in services, not just retargeting a project.
1. Inventory routes, dependencies and System.Web touch points
List every route, the internal modules and third-party libraries behind it, and the cross-cutting concerns it touches: session, authentication, caching, logging, error handling and configuration. Microsoft's migration overview names the pervasive use of HttpContext and other System.Web types as the first source of difficulty. Flag each place the app relies on one of these:
| In ASP.NET Framework | In ASP.NET Core | Why it gets flagged |
|---|---|---|
Global.asax and the application life cycle |
Program.cs and a modular middleware pipeline |
Startup and per-request logic move into code you order explicitly |
HTTP modules and handlers in web.config |
Middleware and endpoints | Responses pass back through middleware in reverse order |
web.config app settings |
appsettings.json, environment variables and the options pattern |
Secrets and per-environment values need a new home |
| Session with automatic serialization and locking | Session stored as byte[], manual serialization, no locking guarantees |
Code that stores objects in session needs rework |
| ASP.NET Membership | ASP.NET Core Identity | Users and roles map across; passwords don't |
| Web Forms | Blazor or Razor Pages | A UI rebuild, not a port |
| WCF services | CoreWCF or gRPC | Server code needs a new host |
| Third-party DI containers | Built-in dependency injection | Registrations move into Program.cs |
This list becomes both your migration path and your estimate. Any estimate given before it exists is a guess with decimals.
2. Pay down technical debt in the existing app
Microsoft recommends this before you upgrade any library. Update NuGet packages one at a time, move from packages.config to PackageReference and convert to SDK-style project files. Then fix compiler warnings and remove dead code. Every warning cleared now is one fewer surprise later.
3. Stand up an ASP.NET Core 10 project with YARP in front
Create the new ASP.NET Core web app on .NET 10 alongside the old one, and configure YARP to forward everything it doesn't handle yet. Deploy this empty shell to production early, before it serves a single migrated page. That proves hosting, TLS and monitoring while the stakes are low.
4. Decide how session and authentication cross the boundary
Choose per concern. For session, Microsoft offers three options: rewrite to native ASP.NET Core session, use a wrapped ASP.NET Core session, or share session with the old app through remote app session. For authentication, the adapters' remote authentication lets the new app defer to the old one until you move sign-in itself.
Membership needs its own plan. Microsoft's guidance is to leave the password empty in the new Identity schema and ask users to reset, because password criteria and salts don't carry across. That's a communications plan as much as a SQL script, so put it on the schedule from day one.
5. Upgrade only the shared libraries the next routes need
Work in postorder depth-first order: leaf dependencies first, the main app last. Target .NET Standard 2.0 where you can, or multi-target .NET Framework and .NET 8 or later. Swap the System.Web reference for the adapters package so HttpContext code compiles on both sides. Compatibility issues tend to surface here first.
6. Move routes one slice at a time
Move controllers and views, turn HTTP modules into middleware and replace third-party containers with built-in dependency injection. Start with a low-risk slice, such as a read-only reporting page, before you touch checkout or account management.
7. Let the GitHub Copilot upgrade agent draft the changes
Older guides, including earlier versions of this one, point to tools Microsoft has since replaced. Microsoft's tooling page now recommends the GitHub Copilot upgrade agent (earlier called GitHub Copilot app modernization) for MVC, Web API and Web Forms projects. It assesses the solution, writes a plan you can edit and commits each change so you can roll back.
| Tool | What it does | Status (checked October 2026) |
|---|---|---|
| GitHub Copilot upgrade agent | Assesses, plans and executes upgrades from any .NET Framework version to .NET 8 or later; includes a Web Forms-to-Blazor scenario | Current. In Visual Studio it needs Visual Studio 2026 or 2022 version 17.14.17+ and a paid or free GitHub Copilot subscription |
| .NET Upgrade Assistant | Analyzed and upgraded projects, with a side-by-side incremental mode for ASP.NET | Officially deprecated; Microsoft directs users to the Copilot agent |
| YARP | Routes traffic between the new and old apps | Current; central to Microsoft's incremental approach |
| System.Web adapters | Let libraries keep HttpContext patterns; share session and authentication with the old app |
Current; package Microsoft.AspNetCore.SystemWebAdapters |
| CoreWCF | Hosts WCF server code on modern .NET | Microsoft announced product support with the 1.0 release in April 2022 |
Review the agent's commits the way you'd review a capable junior developer's pull request. They're fast and useful, and they still need review before they merge.
8. Prove parity, then retire the old app
Skimp on testing and the bugs show up in production. Build regression tests around the behavior you recorded in step 1, add unit tests for rewritten code and compare old and new routes with real data. When the proxy has forwarded nothing to the old app for a full business cycle, including month-end and any seasonal peak, switch the old app off.
If you want help with steps 1 to 3, our ASP.NET development team would start with the route inventory and the session plan. Brainvire is a Microsoft Solutions Partner.
Troubleshooting: where migrations stall
Most stalls trace back to a short list of technologies with no direct equivalent on modern .NET. Microsoft documents them in .NET Framework technologies unavailable on .NET 6+.
Web Forms pages have nowhere to go
Web Forms won't be ported to modern .NET. Microsoft's Blazor guide for Web Forms developers positions Blazor as the natural next step, since both use component-based, event-driven UI. Budget these pages as a UI rebuild with the business logic carried over.
WCF services won't host
WCF server code needs CoreWCF, which gained Microsoft product support with its 1.0 release. Calling WCF services from a client is a separate, smaller question.
Users can't sign in after the Identity move
Membership password hashes don't migrate to ASP.NET Core Identity. If nobody planned the reset emails and help desk scripts in step 4, this is where it surfaces.
Session values come back empty or wrong
Session keys in ASP.NET Core are case-sensitive, unlike ASP.NET Framework. Objects also need manual serialization, and concurrent requests no longer queue behind a session lock. A bug like that won't show up in a code review. It shows up when a checkout loses its cart.
An old package has no modern version
Microsoft warns that outdated packages might not have modern equivalents. When a leaf dependency blocks the upgrade, decide early whether to replace it, wrap it behind an interface or rewrite the part you use.
Workflow, app domains, Remoting or COM+
Windows Workflow Foundation isn't supported; Microsoft points to the community CoreWF project instead. App domains, .NET Remoting, code access security and System.EnterpriseServices (COM+) aren't supported either. Each needs a redesign, usually separate processes, containers or HTTP-based services. If your app leans on two or more of these, plan a partial rebuild of those areas rather than a port.
FAQ
Can I migrate ASP.NET Framework 4.8 directly to .NET 10?
Yes. Microsoft's GitHub Copilot upgrade agent supports moving from any .NET Framework version to .NET 8 or later, and .NET 10 is the current LTS release. There's no need for an intermediate stop on .NET 8 or 9, both of which leave support on November 10, 2026.
Is .NET Core deprecated?
The name is, the platform isn't. Microsoft released .NET 5 in 2020 to bring .NET Core and Mono into a single .NET. The last version branded ".NET Core" was 3.1, which left support in December 2022. Today's equivalent is .NET 10, supported until November 14, 2028.
How long does an ASP.NET to ASP.NET Core migration take?
It depends on codebase size, System.Web usage, the number of Web Forms pages and how much session and authentication logic crosses the boundary. A route inventory and dependency map is the only reliable basis for an estimate. With incremental migration, the old app stays live throughout, so the timeline affects cost more than it affects users.
Start with the route list
That 2011 login page doesn't need rewriting this quarter. You do need to know it exists, what it depends on and which slice it moves in. If you want help building that list or the cutover plan, our Microsoft enterprise services team can map the first slice with you.
Related reading
Embedded systems programming: how firmware is structured, written and testedJuly 28, 2021 · 12 min read
eLearning management systems: 18 LMS platforms grouped by who you trainDecember 16, 2024 · 13 min read