Monday, 4 December 2017

MVC - Fix Error - An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code Additional information: Input string was not in a correct format.

An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code

Additional information: Input string was not in a correct format.

watch solution on YouTube


to fix it replace

 private string DisplayedErrorMessage = "Either {0] or {1} is required";

with

 private string DisplayedErrorMessage = "Either {0} or {1} is required";

No comments:

Post a Comment