I encountered the same problem after Windows 24H2 update, my problem was solved by removing ASP support from the Windows components install/remove menu and reinstalling it. (I tried for localhost, I don't know about the server side)