Hello @Jeffrey K ,
You try to create a device client based on the C# Azure IoT Device SDK.
Please check out this blog post with a similar approach.
Most importantly, you need to use the correct connection string.
This is the connection string unique for a single device:
HostName=someuniqueiothubname.azure-devices.net;DeviceId=testdevice;SharedAccessKey=XYZ
Do not use IoT Hub connection string, looking like this:
HostName=otheriothubname.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=ABC // DO NOT USE THIS!!!
This second connection string must never leave the save cloud environment. It this connection string is exposed outside the cloud the user can start manipulating your IoT Hub (seriously, keep it safe)!