Web Forms still gets security fixes for as long as Windows does. It will never run on .NET 10 or any later version. The way out is not a rewrite: a new ASP.NET Core app takes over one page at a time while the old app keeps serving the rest.
// New .NET 10 app in front of the Web Forms app var builder = WebApplication . CreateBuilder ( args ) ; builder . Services . AddSystemWebAdapters ( ) ; builder . Services . AddHttpForwarder ( ) ; builder . Services . AddRazorPages ( ) ;
var app = builder . Build ( ) ; app . UseSystemWebAdapters ( ) ; app . MapRazorPages ( ) ; // pages moved so far app . MapForwarder ( "/{**catch-all}" , app . Configuration [ "ProxyTo" ] ) ; // the rest app . Run ( ) ;
Enter fullscreen mode
Exit fullscreen mode
Where ASP.NET Web Forms stands
Web Forms is part of ASP.NET on .NET Framework. Microsoft calls .NET Framework 4.8.1 the latest version, and it ships as a component of Windows, so it is supported and patched for as long as the Windows version it runs on.…