Hello @SrideviM , thank you very much for your replies.
The error shows up before the logout process. If I just stop debugging at this point, the user is not logged out.
If I just press "Continue" in Visual Studio 2022, the program continues the execution and brings me to the logout page:
If I continue, logout process is performed correctly and the post logout direct Uri is hit correctly (actually It is redirected to the entry point of the site to reinitiate the login process-as I have programmed to login before rendering the first page), as defined in appSettings.json:
everything completes fine.