Am trying to connect to one of my PowerApps environment using the console app given in the following URL
Get started with the Common Data Service SDK
I followed all steps provided in the link. Registered App in AD, created environment and database in powerapps, replaced all values of the app.config sample code with the actual values. But, when i try to run the console app, it shows prompt as expected, once i give access using the prompt, it is showing following error
{"Environment discovery failed. No matching environments matched the given Id of {{my environment GUID}}."}
at following line
var client = ConnectionSettings.Instance.CreateClient().Result
What am i missing here ?