Hello - I had the same problem with TWS API RTD Server for Excel - solved it by the following:
- with Visual Studio (using 2022) - run VS as Adminstrator
- Load the project(s) in the TWS API directory under - source
- build the C# Projects ( I did them as .NET framework 4.8 and 64xbit...