question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet run ./path/to/project throws Object reference not set to an instance of an object.

See original GitHub issue

Steps to reproduce

Steps fail on both Windows or OSX

clone https://github.com/NotMyself/coreapp cd coreapp & dotnet restore dotnet run ./src/UIMvc dotnet test ./test/UIMvc.Tests

Expected behavior

web project should compile and run test project should compile and run

Actual behavior

web project throws Error: Object not set to an instance of an object. test project runs as expected

Environment data

dotnet --info output:

OSX via iTerm bash .NET Command Line Tools (1.0.0-preview1-002702)

Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e

Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64

Windows via PowerShell .NET Command Line Tools (1.0.0-preview1-002702)

Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e

Runtime Environment: OS Name: Windows OS Version: 10.0.14342 OS Platform: Windows RID: win10-x64

selfie-2 GitHub Selfies

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
blackdwarfcommented, May 18, 2016

In general, I don’t think we should throw exceptions. 😄

1reaction
blackdwarfcommented, May 18, 2016

Ofc. The discern could happen with a special token, e.g. -- or something like that, that would indicate others are to be passed down. Just a though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DotNet Core: Object reference not set to an instance of an ...
I have reverted to the initial version of the project.json (cancelled all the updates of the nuget packages) and the code is working...
Read more >
Issues
dotnet run ./path/to/project throws Object reference not set to an instance of an object. #6142 · Comments · Steps to reproduce · Expected...
Read more >
Dotnet new fails: Object reference not set to an instance of ...
I fixed it by wiping the "/usr/share/dotnet/templates" and "~/.templateengine" folders. Then reinstalling dotnet core 3.1 and then running ...
Read more >
Still having big problems with Object reference not set to an ...
The error means that your code is trying to access/reference an object that is a null valued object that is not there in...
Read more >
How can I fix the error: System.NullReferenceException
When you have a statement like A.B.C = E.F; , and you receive an NullReferenceException 'Object reference not set to an instance of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found