Monday, August 25, 2014

Error EntityException

To expand on that advice.


Exceptions are wrapped by another exception each level as they bubble up the stack.


You want the inner most exception.


You get that using GetBaseException:



Console.WriteLine(ex.GetBaseException().ToString() );



http://ift.tt/1nvU5fa


Or if it's in debug and you hit it, you can just open it up manually.




Hope that helps

Please don't forget to up vote answers you like or which help you and mark one(s) which answer your question.


No comments:

Post a Comment