As the message suggets, this error occurs when you try and convert a string to a boolean type.
Debug and step through your code. Find the line where this error occurs and try and figure out why you are doing the conversion.
You can use the Boolean.TryParse
method[
^] to avoid this error.