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.]
   System.Web.WebPages.Deployment.AssemblyUtils..cctor() +0

[TypeInitializationException: The type initializer for 'System.Web.WebPages.Deployment.AssemblyUtils' threw an exception.]
   System.Web.WebPages.Deployment.AssemblyUtils.GetWebPagesAssemblies(IEnumerable`1 loadedAssemblies) +22
   System.Web.WebPages.Deployment.AssemblyUtils.GetMaxWebPagesVersion(IEnumerable`1 loadedAssemblies) +10
   System.Web.WebPages.Deployment.PreApplicationStartCode.StartCore(IFileSystem fileSystem, String appDomainAppPath, String binDirectory, NameValueCollection appSettings, IEnumerable`1 loadedAssemblies, IBuildManager buildManager, Action`1 loadWebPages, Action registerForChangeNotification, Func`2 getAssemblyNameThunk) +39
   System.Web.WebPages.Deployment.PreApplicationStartCode.StartCore() +170
   System.Web.WebPages.Deployment.PreApplicationStartCode.Start() +33

[InvalidOperationException: The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: The type initializer for 'System.Web.WebPages.Deployment.AssemblyUtils' threw an exception..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +550
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521

[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: The type initializer for 'System.Web.WebPages.Deployment.AssemblyUtils' threw an exception..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9950728
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


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