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:


Line 612:            {
Line 613:                fileContent = fileContent.Replace("{userrazor}", "");
Line 614:                fileContent = Razor.Parse(fileContent, new {nowID = ShowID });
Line 615:            }
Line 616:            if (fileContent.IndexOf("{usercache}") > -1)

Source File: d:\websoft\web\bz_www\Default.aspx.cs    Line: 614

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource) +0
   System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence) +123
   Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +6824474
   Microsoft.CSharp.CSharpCodeGenerator.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) +554
   Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) +47
   System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit[] compilationUnits) +23
   RazorEngine.Compilation.DirectCompilerServiceBase.Compile(TypeContext context) +912
   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context) +25
   RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType) +371
   RazorEngine.Templating.TemplateService.CreateTemplate(String razorTemplate, Type templateType, Object model) +64
   RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) +27
   RazorEngine.Razor.Parse(String razorTemplate, T model) +29
   Index.Page_Load(Object sender, EventArgs e) in d:\websoft\web\bz_www\Default.aspx.cs:614
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


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