For me, I had the same issue, but the problem was that by default when I saved my Model, an invalid DateTime was being created. I had a field CreatedOn and had not set it to anything, which meant the value was 01/01/0001 which was an invalid DateTime for SQL. Setting it got rid of the problem for me.
More Related Contents:
- MVC DateTime binding with incorrect date format
- One DbContext per request in ASP.NET MVC (without IOC container)
- Why LINQ to Entities does not recognize the method ‘System.String ToString()?
- Multiple DB Contexts in the Same DB and Application in EF 6 and Code First Migrations
- using stored procedure in entity framework
- Should services always return DTOs, or can they also return domain models?
- ASP.NET MVC3 and Entity Framework Code first architecture
- Display DateTime value in dd/mm/yyyy format in Asp.NET MVC
- How to change type of id in Microsoft.AspNet.Identity.EntityFramework.IdentityUser
- Saving Many to Many relationship data on MVC Create view
- Defining multiple Foreign Key for the Same table in Entity Framework Code First
- ‘Microsoft.SqlServer.Types’ version 10 or higher could not be found on Azure
- Converting flattened hierarchical data from SQL Server into a structured JSON object with C#/Linq
- DateTime (date and hour) validation with Data Annotation
- Entity Framework Include OrderBy random generates duplicate data
- Use Entity framework I want to include only first children objects and not child of child(sub of sub)
- keyword not supported data source
- Model backing a DB Context has changed; Consider Code First Migrations
- Incompatible Data Reader Exception From EF Mapped Objects
- There is already an object named ‘AspNetRoles’ in the database
- The type or namespace name ‘DbContext’ could not be found [closed]
- EntityType ‘Category’ has no key defined. Define the key for this EntityType [duplicate]
- Strongly-Typed ASP.NET MVC with ADO.NET Entity Framework [closed]
- ASP.NET: This method cannot be called during the application’s pre-start initialization stage
- MVC Routing Parameter Precedence
- How can I combine two fields in a SelectList text description?
- MVC 5 Seed Users and Roles
- Redirecting to specified controller and action in asp.net mvc action filter
- How can I use Html.Action?
- ASP.NET Web API, unexpected end of MIME multi-part stream when uploading from Flex FileReference