I' following this article to develop an IoT edge solution. But while debugging I'm getting the following error:
Unhandled Exception: System.AggregateException: One or more errors occurred. (Environment variable IOTEDGE_WORKLOADURI is required.) ---> System.InvalidOperationException: Environment variable IOTEDGE_WORKLOADURI is required.at Microsoft.Azure.Devices.Client.Edge.EdgeModuleClientFactory.CreateInternalClientFromEnvironmentAsync()
at SampleModule.Program.Init() in D:\IoT Arch POC\EdgeSolution2\modules\SampleModule\Program.cs:line 49
Found one post in git hub, but that is not helpful, this
You are probably trying to run an Iot-Edge Module as a stand alone C# program? That won't work. An IoT-Edge Module must be run in the IoT-Edge or IoT-Edge simulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With