MSFS 2020 "... cannot detect a flight in your simulator"

… additional to Vishals answer, I have written a short description for Windows 11 in the FAQ:

Hopefully, all these information can fix your issues.
Cheers,
Richard