This CS0030 error occurred after switching from a Windows 10 pc to a new Windows 11 machine.
The solution (and all the code) is located on my onedrive, used both on W10 and on W11. Both systems use thus exactly the same physical solution, project and source files, both systems use VS2022.
The solution compiles without problems on W10. It consists of two projects, a single page site hosted to the public and a private 30 pages site using the Gata namespace where each page uses a GataMaster.master file.
On W11 the single page project compiles and runs without errors.
But all Gata pages fail to run because VS2022 tries to use an ASP namespace instead of the Gata namespace. This causes the following CS0030 error:

This error occurs for whatever page happens to be defined as startup page at compile time (Default.aspx in this case).
I've searched the whole solution for the word ASP and found only 2 occurrences, i.e. in the generated comment in the two Web.config files, e.g:
So I didn't define the ASP namespace by accident. Not a single solution file was changed when switching to the new W11 machine.
I've got no clue where this ASP comes from, nor how I can avoid this problem.
Any comments and/or suggestions would be most welcome, I really have to switch to the W11 machine but that'd be really painfull without being able to continue development on my Gata pages...