microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
Error in AppHost.cs
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
The below line 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in AppHost.cs at the _botService.Initialize() call, then inspect RecordingBot.Console/Program.cs at lines 57 and 77. Reproduce the startup failure and determine the null reference cause; completion should also prevent the exception handler's Console.ReadKey error from obscuring the original failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100