This error occurred while inserting data using EF
View internal errors
View internal errors
string str = ex.InnerException.InnerException.Message;
Turns out the mistake was
A conversion from the dateTime2 data type to the Datetime data type produces an out-of-scope value. The statement has terminated.