InvalidCastException, unhandled by user code
123087
ExecuteScalar(); With scope_identity() Generating "System.InvalidCastException: Specified cast is not valid"
89755
Why is "throw null" not creating a compilation error in Java?
122730
XmlSerializer - There was an error reflecting type
3893
Can you catch a native exception in C# code?
92187
Unable to cast object of type 'System.DBNull' to type 'System.String`
29936
ListException: List index out of bounds: 0 for Custom Employee User account
289
What is a NullReferenceException, and how do I fix it?
56124
Why do I get "Exception; must be caught or declared to be thrown" when I try to compile my Java code?
8022
"Requires a valid user is specified ..." error when using getCount
138057
CAST throwing error when run in stored procedure but not when run as raw query
113751
Getting exact error type in from DbValidationException
122933
Weird java behavior with casts to primitive types
158857
Invalid conversion from runtime type ERROR
45869
Why null cast a parameter?
98080
Android: Cannot invoke toString() on the primitive type int
3648
this class is not key value coding-compliant for the key XXXXXX
66307
A field initializer cannot reference the nonstatic field, method, or property