Server Error in '/' Application.

Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

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.DllNotFoundException: Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:


Line 67:                     date.Month++;
Line 68:                     date.DateToday = DateTime.Now.ToString("dd/MM/yyyy");
Line 69:                     db.SaveChanges();
Line 70:                     if (date.DateToday.Substring(0, 2).ToString() == "01")
Line 71:                     {

Source File: d:\hostingspaces\flienglish.com\en.flienglish.com\Global.asax    Line: 69

Stack Trace:


[DllNotFoundException: Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   Microsoft.SqlServer.Types.GLNativeMethods.SetClrFeatureSwitchMap(Int32 clrFeatureSwitchMap) +0
   Microsoft.SqlServer.Types.SqlGeometry.IsValidExpensive() +104
   Microsoft.SqlServer.Types.SqlGeometry.Construct(GeoData g, Int32 srid) +180
   Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid) +224
   Microsoft.SqlServer.Types.SqlGeometry.STGeomFromText(SqlChars geometryTaggedText, Int32 srid) +20
   Microsoft.SqlServer.Types.SqlGeometry.Parse(SqlString s) +188

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +168
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +105
   System.Data.SqlClient.SqlSpatialServices.GeometryFromText(String geometryText) +114
   System.Data.Spatial.DbGeometry.FromText(String wellKnownText) +57
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.InitializeTypeDefaultMap() +687
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator..cctor() +31

[TypeInitializationException: The type initializer for 'ExtentPlaceholderCreator' threw an exception.]
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.GetPropagatorResultForPrimitiveType(PrimitiveType primitiveType, PropagatorResult& result) +33
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.Visit(EdmMember node) +61
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.CreateEntitySetPlaceholder(EntitySet entitySet) +211
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.CreatePlaceholder(EntitySetBase extent, UpdateTranslator parent) +183
   System.Data.Mapping.Update.Internal.Propagator.Visit(DbScanExpression node) +87
   System.Data.Common.CommandTrees.DbScanExpression.Accept(DbExpressionVisitor`1 visitor) +26
   System.Data.Mapping.Update.Internal.UpdateExpressionVisitor`1.Visit(DbExpression expression) +62
   System.Data.Mapping.Update.Internal.Propagator.Visit(DbProjectExpression node) +108
   System.Data.Common.CommandTrees.DbProjectExpression.Accept(DbExpressionVisitor`1 visitor) +26
   System.Data.Mapping.Update.Internal.Propagator.Propagate(UpdateTranslator parent, EntitySet table, DbQueryCommandTree umView) +63
   System.Data.Mapping.Update.Internal.<ProduceDynamicCommands>d__44.MoveNext() +812
   System.Linq.<ConcatIterator>d__59`1.MoveNext() +113
   System.Data.Mapping.Update.Internal.UpdateCommandOrderer..ctor(IEnumerable`1 commands, UpdateTranslator translator) +266
   System.Data.Mapping.Update.Internal.UpdateTranslator.ProduceCommands() +173
   System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) +209
   System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache) +147
   System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options) +597
   System.Data.Objects.ObjectContext.SaveChanges() +17
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\hostingspaces\flienglish.com\en.flienglish.com\Global.asax:69
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10082212
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +165
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1126
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +297
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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