Thank you Brenden,
This is what I have got already on my project and everything was working fine before I decided to swith from VS 17.3.6 to VS 17.5.2 and installed .Net7.
My concern is that I also tried with the DancingGoatCore website which was working fine and migrated it to .Net6 and compiling it with VS22 17.5.2 and I have the same kind of behaviour (broken links, getmedia issues) with this default website.
It really seems to be related to the installation of the latest VS and .Net7 otherwise I wouldn't have the same behaviour on both my project and the DancingGoatCore website.
When I look at the webfarms for the DancingGoatCore website, the webfarm for the live has been rewritten from MyPC_DancingGoatCore_AutoExternalWeb to MyPC_AutoExternalWeb so it is a good indication that the admin site can not read the virtual application directory as it used to do before this upgrade of VS.
I am not saying that it is a Kentico issue but a hotfix could be needed to make it work in this environnment as .Net 7 would be installed more frequently.
Thank you,
Sylvain