Server Error in '/' Application.

Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found. ]
   System.Data.Entity.SqlServer.SqlTypesAssemblyLoader.GetSqlTypesAssembly() +92
   System.Data.Entity.SqlServer.SqlSpatialDataReader.<.cctor>b__0() +47
   System.Lazy`1.CreateValue() +243
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Lazy`1.get_Value() +173
   System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeography(Int32 ordinal) +84
   System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +232
   System.Data.Entity.Core.Common.Internal.Materialization.Shaper.GetSpatialPropertyValueWithErrorHandling(Int32 ordinal, String propertyName, String typeName, PrimitiveTypeKind spatialTypeKind) +328
   lambda_method(Closure , Shaper ) +1210
   System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +258
   lambda_method(Closure , Shaper ) +515
   System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +384
   System.Data.Entity.Core.Common.Internal.Materialization.RowNestedResultEnumerator.MaterializeRow() +137
   System.Data.Entity.Core.Common.Internal.Materialization.RowNestedResultEnumerator.MoveNext() +85
   System.Data.Entity.Core.Common.Internal.Materialization.ObjectQueryNestedEnumerator.TryReadToNextElement() +19
   System.Data.Entity.Core.Common.Internal.Materialization.ObjectQueryNestedEnumerator.MoveNext() +48
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +246
   FayedTravel.Core.Repositories.HotelRepository.GetHotel(String urlName, Boolean includePackage, Boolean includePhotos, Boolean includeDestination) in d:\Clients\Fayed Travel\Code\FayedTravel.Core\Repositories\HotelRepository.cs:45
   FayedTravel.Application.ApplicationServices.HotelService.GetHotel(String urlName, Boolean includePackage, Boolean includePhotos, Boolean includeDestination) in d:\Clients\Fayed Travel\Code\FayedTravel.Application\ApplicationServices\HotelService.cs:46
   FayedTravel.hotel_details.Page_Load(Object sender, EventArgs e) in d:\Clients\Fayed Travel\Code\Fayed Travel\hotel-details.aspx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   FayedTravel.PageBase.OnLoad(EventArgs e) in d:\Clients\Fayed Travel\Code\Fayed Travel\AppCode\PageBase.cs:53
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0