Question #2546

Hello,
I keep getting the following error when running my program: "Input string was not in a correct format."
The error is thrown before I even get a chance enter an input. Please help. I'm going crazy. Thanks.

System.Console.Write("Enter citation number: ");
citationNumber = int.Parse(System.Console.ReadLine());

Expert's answer

We need the whole your code to answer to your question.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS