Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

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:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil.GetInstance() +0
   Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil..cctor() +38

[TypeInitializationException: The type initializer for 'Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil' threw an exception.]
   Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule(Type moduleType) +28
   System.Web.WebPages.PreApplicationStartCode.Start() +113
   System.Web.Mvc.PreApplicationStartCode.Start() +39

[InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: The type initializer for 'Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil' threw an exception..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +890
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +167
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +133
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +178
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +746

[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: The type initializer for 'Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil' threw an exception..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +732


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