1

Closed

SMTP_Client Constructor Error Parsing Hardware Provider

description

Experienced on my Netduino Plus running firmware 4.2.0.1 on .NET MF 4.2.

The call to:
Tools.HardwareProvider.ToString()
In the SMTP_Client constructor returns "Netduino" for me. The SMTP_Client constructor goes on to try to parse a '.' character out of it. Since "Netduino" doesn't contain a dot, I get an ArgumentOutOfRangeException on the next line when the result of the parse is used.

I don't know about the ramifications for other .NET MF devices, but this works great if I reduce all three lines to:
this._LocalHostname = Tools.HardwareProvider.ToString();
Closed Jun 21, 2014 at 3:14 PM by Garrcomm
Hi mcdori02,

Thanks for reporting this issue. It's fixed now!

comments