TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
479.6k
System.ArgumentNullException: 'Value cannot be null. Paramet
Sep 9 2019 7:51 AM
Hi Team
I have this error System.ArgumentNullException:Value cannot be null, Parameter name:connectionString.
private static string s_deviceConnectionString = Environment.GetEnvironmentVariable("IOTHUB_DEVICE-CONN_STRING");
launchSetting.json
{
"profiles": {
"TwinDeviceApplication": {
"commandName": "eNtsaIOTHubs",
"environmentVariables": {
"IOTHUB_DEVICE-CONN_STRING": "HostName=eNtsaIOTHubs.azure-devices.net;DeviceId=eNtsaDeviceId;SharedAccessKey=***
}
}
}
}
DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(s_deviceClientConnectionString, s_ transportType);
What am i missing? Isnt my deviceClient object has to launch this setting.json file to createConnectionString? Please assist me, thanks.
Reply
Answers (
4
)
export parent child gridview in excel using c#
String was not recognized as a valid DateTime.'