'Microsoft.SqlServer.Types' version 10 or higher could not be found on Azure

前端 未结 12 2391
感情败类
感情败类 2020-11-30 23:01

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

        
12条回答
  •  余生分开走
    2020-11-30 23:42

    The solution for me was just adding this line of code to Global.asax.cs in Application_Start():

    SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
    

    Good luck my brothers.

提交回复
热议问题