Render Failed for component AFP.WebUI.Presentation.Components.Form.Form
Parsing error occurred in template '-458523726' -> The type initializer for 'Microsoft.SqlServer.Types.SridList' threw an exception.
Content.RazorEngine37
at Content.RazorEngine37.RazorEngineTemplatingService.Parse(String Markup, Object Model, String UniqueKey)
at Content.RazorEngine37.RazorEngineTemplatingService.Render(String Markup, Object Model, ICanvas Output)
at AFP.WebUI.Presentation.Components.Form.Form.Render()
at AFP.Content.WebControls.ContentControl._Lambda$__5(IComponent x)The type initializer for 'Microsoft.SqlServer.Types.SridList' threw an exception.
Microsoft.SqlServer.Types
at Microsoft.SqlServer.Types.SqlGeography.set_Srid(Int32 value)
at lambda_method(Closure , BinaryReader )
at System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeography(Int32 ordinal)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.GetSpatialPropertyValueWithErrorHandling[TProperty](Int32 ordinal, String propertyName, String typeName, PrimitiveTypeKind spatialTypeKind)
at lambda_method(Closure , Shaper )
at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EFFilter.EntityFramework.Repository.Repository`2.GetTheResult(IQuery`1 searchQuery, IQueryable`1 sequence)
at EFFilter.EntityFramework.Repository.Repository`2.Search(IQuery`1 searchQuery)
at AFP.Content.Application.MSSQLRepository`2.Search(IQuery`1 Query)
at AFP.EstateWeb.Offices.Templating.Helpers.OfficeHelper.GetOffices()
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at CompiledRazorTemplates.Dynamic.RazorEngine_e7fdb3874b6b4e699d2248085bd3aa09.Execute()
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at CompiledRazorTemplates.Dynamic.RazorEngine_bd5e17415be34951976fde7cec787ee1.Execute()
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at CompiledRazorTemplates.Dynamic.RazorEngine_bd80c3b537394497b7ee53700acca827.Execute()
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass4.b__3(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Content.RazorEngine37.RazorEngineTemplatingService.Parse(String Markup, Object Model, String UniqueKey)Exception of type 'System.OutOfMemoryException' was thrown.
Microsoft.SqlServer.Types
at Microsoft.SqlServer.Types.SridList..cctor()