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.Text.StringBuilder.ToString() +29
   Umbraco.Core.Persistence.Database.GetMultiPocoFactory(Type[] types, String sql, IDataReader r) +311
   Umbraco.Core.Persistence.<Query>d__1c`1.MoveNext() +230
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +327
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   Umbraco.Core.Persistence.Database.Fetch(Sql sql) +126
   Umbraco.Core.Persistence.Repositories.TemplateRepository.PerformGet(Int32 id) +149
   Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +84
   Umbraco.Core.Services.FileService.GetTemplate(Int32 id) +71
   Umbraco.Web.Routing.PublishedContentRequestEngine.FindTemplate() +936
   Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContentAndTemplate() +234
   Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +91
   Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +306
   Umbraco.Web.UmbracoModule.<Init>b__7(Object sender, EventArgs e) +84
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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