I am not sure why I am getting this error message. I have a primary key defined in my sql database for it. Here is my code:
[HttpPost]
public ActionResult
I ran into this issue also and wanted to add that in Entity Framework version 6 this error occurs because the DbgGeography type has been moved from the assembly system.data.entity and into the entityframework.dll
to resolve this in EF 6+ remove the reference to the entity dll and change the using statement to using System.Data.Entity.Spatial
see this http://entityframework.codeplex.com/workitem/1535