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 60:         
Line 61:         //A10.HRef = "New.aspx?Service=" + sub;
Line 62:         db.SaveChanges();
Line 63: 
Line 64:         

Source File: d:\hostingspaces\cargo1.ir\sedayeghanoon.ir\Test.aspx.cs    Line: 62

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.CreateAssociationSetPlaceholder(AssociationSet associationSet) +331
   System.Data.Mapping.Update.Internal.ExtentPlaceholderCreator.CreatePlaceholder(EntitySetBase extent, UpdateTranslator parent) +147
   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.UpdateExpressionVisitor`1.Visit(DbExpression expression) +62
   System.Data.Mapping.Update.Internal.Propagator.Visit(DbJoinExpression node) +95
   System.Data.Common.CommandTrees.DbJoinExpression.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
   Test.Page_Load(Object sender, EventArgs e) in d:\hostingspaces\cargo1.ir\sedayeghanoon.ir\Test.aspx.cs:62
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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