thank you for your hints. In the meantime I created a completly new project only with .Net 8 and SAP .Net connector 3.1.5.0 what should be working together. The necessary VC++ runtimes are also installed. But I still have the same problem.
Something is not fitting together and I have no idea what :-(