Azure-Samples / azure-iot-central-samples-csharp

An sample project that interacts with Azure IoT Central rest APIs.
MIT License
7 stars 8 forks source link

This example fails to run complaining that System.ArgumentException: ''authority' should be in URI format. Arg_ParamName_Name' #10

Open duncangroenewald opened 1 year ago

duncangroenewald commented 1 year ago

Fails on line 19 in Program.cs

duncangroenewald commented 1 year ago

Unhandled exception. System.ArgumentException: 'authority' should be in URI format. (Parameter 'authority') at Microsoft.Identity.Client.AuthorityInfo.ValidateAndCreateAuthorityUri(String authority, Nullable1 authorityType) at Microsoft.Identity.Client.AuthorityInfo.FromAuthorityUri(String authorityUri, Boolean validateAuthority) at Microsoft.Identity.Client.Instance.Authority.CreateAuthority(String authority, Boolean validateAuthority) at Microsoft.Identity.Client.AbstractApplicationBuilder1.WithAuthority(String authorityUri, Boolean validateAuthority) at Examples.Program.Main(String[] args) in C:\Users\xxxxx\Development\azure-iot-central-samples-csharp\samples\Examples\Program.cs:line 19