2

I'm using .NET Core 2.2 with EF and when queries are being run against database, I see a bunch of ArgumentExceptions being logged in the Output -> Debug window such as:

Exception thrown: 'System.ArgumentException' in System.Linq.Expressions.dll

The thing is my app is working perfectly fine, I get proper results and everything. I see like a hundred of these in the Visual studio's debug for no apparent reason.

Is there anyway I could find more information about these exceptions? Maybe let Visual studio break on them or something like that?

Edit: This did not happen on a different machine. I guess something bad is happening with my system and I could not tell what.

2
  • 2
    try to check Debug -> Windows -> Exception Settings->Common Language Runtime Exceptions checkbox for the System.ArgumentException. Also try to uncheck Debugging > General > Enable Just My Code. Does it change something? Commented Feb 3, 2019 at 12:59
  • yeah, that does seem to help, it breaks on my code - thanks! Commented Feb 3, 2019 at 19:11

1 Answer 1

7

So, the answer is to enable System.ArgumentException at Visual Studio setting Debug -> Windows -> Exception Settings->Common Language Runtime Exceptions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.