EF 6 e tipo espacial DbGeography no Windows Azure

Já passou alguns dias muito frustrantes tentando fazer com que o tipo espacial DbGeography funcione no Windows Azure. Eu tenho um projeto do Windows Azure com um Webrole onde eu uso o método DbGeography.Distance () para calcular as distâncias. Funciona lika um charme no meu computador local, mas uma vez publicado no Azure eu recebo a exceção:

Search spa  failed message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at Microsoft.SqlServer.Types.GLNativeMethods.GeodeticDistance(GeoMarshalData g1, GeoMarshalData g2, EllipsoidParameters ellipsoidParameters, Double& result)
   at Microsoft.SqlServer.Types.GLNativeMethods.GeodeticDistance(GeoData g1, GeoData g2, EllipsoidParameters ellipsoidParameters)
   at Microsoft.SqlServer.Types.SqlGeography.STDistance(SqlGeography other)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Data.Entity.SqlServer.SqlSpatialServices.Distance(DbGeography geographyValue, DbGeography otherGeography)
   at System.Data.Entity.Spatial.DbGeography.Distance(DbGeography other)
   at DataAccess.Util.DistanceHelper.GetDistanceDictionary(DbGeography spaLocation)
   at MvcWebRole.Controllers.SpaController.SearchSpa(String searchString)

Eu segui a postagem do bloghttp://alastaira.wordpress.com/2011/08/19/spatial-applications-in-windows-azure-redux-including-denali/ adicionando referência a Sql.Server.Types e SqlServerSpatial.dll, msvcp100.dll e msvcr100.dll. Thist realmente trabalhou com o EF5 e um projeto de site do Azure, mas não agora quando fiz o upgrade para o EF6 e um projeto de serviço de nuvem :(

questionAnswers(1)

yourAnswerToTheQuestion