Consider to fresh install .NET then, at least if you are on Windows 11 as there is a known issue:
Details: