提问人:Claudia Goga 提问时间:10/12/2023 最后编辑:Claudia Goga 更新时间:10/12/2023 访问量:61
访问地理数据时出错:OutOfMemoryException Microsoft.SqlServer.Types.SridList
Error accesing Geography data: OutOfMemoryException Microsoft.SqlServer.Types.SridList
问:
我在我的网站上遇到了一个奇怪的错误,到目前为止一切都很好,现在每次我访问查询包含地理数据的数据的页面时,我都会收到这个错误(据我所知)。不过,我可以查询 Microsoft SQL Studio 中的所有数据... 我有第二个网站,在同一服务器上的代码完全相同,但数据库不同,而且那个网站工作正常。一个不起作用的 SQL Server 数据库具有 6MB 的可用空间,另一个可以正常工作的 SQL Server 数据库具有 60MB 的可用空间。自动增长设置为 64MB
知道我能解决这个问题吗?下面是堆栈跟踪:
[OutOfMemoryException:类型为“System.OutOfMemoryException”的异常 被扔了。Microsoft.SqlServer.Types.SridList..cctor() +0
[TypeInitializationException:类型初始值设定项 “Microsoft.SqlServer.Types.SridList”引发异常。
Microsoft.SqlServer.Types.SqlGeography.set_Srid(Int32 value) +26
Microsoft.SqlServer.Types.SqlGeography..ctor(GeoData g, Int32 srid) +52 lambda_method(闭包,BinaryReader) +140 System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeography(Int32 序号)+216
System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader2 constructEntityDelegate、EntityKey entityKey、EntitySet entitySet) +258 lambda_method(闭合,整形) +518 System.Data.Entity.Core.Common.Internal.Materialization.Coordinator1.MoveNext() +379 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务) +62 Repository.Pattern.Ef6.d__f.MoveNext() +327 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务) +62 Repository.Pattern.Ef6.d__0.移动下一个() +320 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)+62
BeYourMarket.Web.Controllers.d__af。移动下一个() +2254 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)+62 BeYourMarket.Web.Controllers.d__9c。移动下一个() +203 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务) 任务) +62
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +92
System.Web.Mvc.Async.<>c__DisplayClass37.b__36(IAsyncResult) asyncResult) +22
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult) 异步结果) +69
System.Web.Mvc.Async.AsyncInvocationWithFilters.b__3d() +72 System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +396 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +69
System.Web.Mvc.Async.<>c__DisplayClass2b.b__1c() +38 System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult) asyncResult) +188
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult) asyncResult) +59
System.Web.Mvc.Controller.b__1d(IAsyncResult) asyncResult, ExecuteCoreState innerState) +32
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult) 异步结果)+39 System.Web.Mvc.Controller.EndExecute(IAsyncResult) asyncResult) +59
System.Web.Mvc.MvcHandler.b__5(IAsyncResult) asyncResult,ProcessRequestState innerState) +46
System.Web.Mvc.Async.WrappedAsyncVoid'1.CallEndDelegate(IAsyncResult) asyncResult) +73
System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) +59 System.Web.CallHandlerExecutionStep.InvokeEndHandler (IAsyncResult ar) +231 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult) AR) +1721.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 ) +7306 System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func
1.ReadNextElement(Shaper shaper) +384 System.Data.Entity.Core.Common.Internal.Materialization.RowNestedResultEnumerator.MaterializeRow() +137 System.Data.Entity.Core.Common.Internal.Materialization.<MoveNextAsync>d__7.MoveNext() +355 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32 System.Data.Entity.Core.Common.Internal.Materialization.<TryReadToNextElementAsync>d__12.MoveNext() +360 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62 System.Data.Entity.Core.Common.Internal.Materialization.<MoveNextAsync>d__a.MoveNext() +369 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62 System.Data.Entity.Internal.<FirstMoveNextAsync>d__0.MoveNext() +614 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62 System.Data.Entity.Infrastructure.<ForEachAsync>d__5
1.CallEndDelegate(IAsyncResult asyncResult) +73 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +73 System.Web.Mvc.Async.WrappedAsyncVoid
答: 暂无答案
评论
Repository.Pattern.Ef6
geography