0

The below line in my code is throwing an exception

_botService.Initialize();

Unhandled exception: Object reference not set to an instance of an object. Exception Details: press any key to exit...

Unhandled Exception: System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read. at System.Console.ReadKey(Boolean intercept) at RecordingBot.Console.Program.ExceptionHandler(Exception e) in C:\src\RecordingBot.Console\Program.cs:line 77 at RecordingBot.Console.Program.Main(String[] args) in C:\src\RecordingBot.Console\Program.cs:line 57

Please help in analysing this issue

Dmitry Bychenko
  • 165,109
  • 17
  • 150
  • 199
Sailakshmi
  • 19
  • 1

0 Answers0