0

I'm a newbie with respect to ASP.NET MVC 3 . I am following the the tutorials as described here . The form submission fails when trying to create a new record.

Images are attached.

Submit Page : enter image description here
An error occurred while updating the entries. See the inner exception for details : enter image description here
Error Page : enter image description here

I need assistance. Thank you.

1
  • Please put the exception details (text) and the code that is throwing inline. Include what you are trying to do. Make it easy for us to answer your question, including making it clear what the question is. Commented Nov 27, 2011 at 10:37

1 Answer 1

1

You are entering the date as 1/1/2011. The error message is An overflow occured while converting to DateTime.

The conversion of a string into a DateTime is dependent on your system locale and how dates are written. Try to write the date in exactly the same form as shown in the system tray.

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

2 Comments

How could you make out that "An overflow occured while converting to DateTime". I looked at the entire image upside down but didn't find this anywhere ??
sorry i didn't checked those links :-P .... Anyways, it will be interesting to see if the code works for 1/1/1989 because they both are in same string format.

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.