Xbox App unable to launch to get MSFS - Error code 0x80070057

First time building PC and I cannot launch the Xbox App and cannot download MSFS from the store. Screenshot below of error code 0x80070057. And if I try to download MSFS from the store it states starting install and then stops. I’ve tried multiple solutions and even reformatted/reinstalled windows but no luck. Appreciate any help.

Hi @Novascotia64,
I would start here:

How to troubleshoot download & Installation issues – Microsoft Flight Simulator Support (zendesk.com)

One important check is to see if the US English Language pack is installed.

I contacted MS support and they ran the gaming repair tool cmd and it’s working now.

I have the same issue that i am online with the xbox account (on pc) but it won’t recognise my game… (dvd store version)… very annoying.

And when i am logged in i cannot change servers

And now when i try to log out en log in it completely restarts the sim… aaarrrghghh all those issues lately with the sim, i hate it