1
Vote

When filling in an wrong private key, the program throws an exception.

description

************** Exception Text **************
System.ArgumentException: This shared key is not valid ---> System.FormatException: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
 
You should now throw the exception, but show a MessageBox or use an ErrorProvider. (http://www.c-sharpcorner.com/UploadFile/DipalChoksi/UsingErrorProviderContolinWindowsFormsandCSharp11242005010829AM/UsingErrorProviderContolinWindowsFormsandCSharp.aspx)

comments