Resources

The Benefits of Migrating from ASPX to .NET Core

The Benefits of Migrating from ASPX to .NET Core

ASPX pages do not run on ASP.NET Core at all. Microsoft never ported Web Forms, so there is no retarget button and no converter that turns .aspx files into something modern. Every page has to be rebuilt in Razor Pages, MVC or Blazor, and that is the real price of any plan to migrate aspx to .net core. What you get for the effort is a framework that runs on Windows, Linux and macOS, gets yearly releases, and does not depend on System.Web. The old stack still works, since .NET Framework 4.8 ships as a Windows component and keeps receiving security patches. It just stops moving forward.

YouTube player

Big rewrite or strangler: pick one early

Microsoft’s own migration guide leans toward incremental migration for anything large or anything that has to stay in production. It is the Strangler Fig pattern. A new ASP.NET Core app sits in front, and a YARP reverse proxy sends every request it cannot handle yet to the old Web Forms app.

Request flow in an incremental migration: the browser hits a new ASP.NET Core app with YARP, which serves migrated routes and forwards the rest to the old Web Forms app

The System.Web adapters packages let both apps share HttpContext, session state and authentication while this goes on. Without them, users get logged out every time a request crosses from one app to the other. Each migrated page then moves behind the new app, and the proxy rule for it can be removed. When the last route is gone, the old app is switched off.

ApproachFitsMain risk
In-place rewriteSmall apps, few dependenciesSmall problems pile up before anything ships
Strangler with YARPLarge apps that stay liveTwo apps to host and monitor for months

Postbacks and ViewState are the part nobody enjoys. Web Forms ties UI events to server code, while ASP.NET Core separates the two, so a button handler cannot just be copied across. Expect to redesign page flow, not translate it.

Old libraries are the second snag. A NuGet package that only targets .NET Framework has to be replaced, and Microsoft advises upgrading shared libraries from the bottom of the dependency tree upward, multi-targeting them so both the old Web Forms app and the new ASP.NET Core app can keep using the same code until the last page has moved.

What you get

Speed and hosting

ASP.NET Core is built to serve more concurrent requests with less memory than Web Forms, and the modular pipeline loads only the middleware you add. Obviously, you want that on a high-traffic site. On a small internal tool nobody will notice.

Hosting is the bigger change for most teams. Linux containers on AWS, Google Cloud or Azure become an option, and Windows licences stop being a fixed cost.

Security

Support is the point here. .NET 10 is a long-term support release with support until November 14, 2028, while .NET 8 and .NET 9 both reached end of support on November 10, 2026. Pick the current LTS and plan for it, not for whatever the tutorial used.

ASP.NET Core ships authentication middleware for OAuth and OpenID Connect, so single sign-on with an external identity provider is configuration work rather than custom code.

When to skip it

I’d skip a migration for an internal Web Forms app with ten users, no new features planned, and a team that has left. Running it on .NET Framework 4.8 costs close to nothing.

It also makes little sense when the plan is a full redesign anyway. Then you are building a new product and the migration label only adds constraints.

Budget matters too. A realistic estimate needs a page-by-page inventory first, and without one the numbers are guesses. Well, it depends on how much of the code-behind holds business logic, and most teams do not know until they open it.

Some apps are better off on the old runtime for good.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.