I\'m trying to make a webapi in ASP.NET MVC 4. The webapi used Entity Framework 5 Spatial types and i have wrote a very simple code.
public List
The solution for me was just adding this line of code to Global.asax.cs in Application_Start():
Application_Start()
SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
Good luck my brothers.