带有.less文件的Mvc应用程序中的System.OutOfMemoryException

时间:2016-02-16 11:44:59

标签: c# asp.net-mvc less out-of-memory

在我们的网站上,有时我得到System.OutOfMemoryException,在日志文件中,我可以看到http://mywebsite/Assets/less/layout.less?3632.01的原因,错误详情如下:

Error Caught in Application_Error event
Error in: http://mywebsite/Assets/less/layout.less?3632.01
Error Message:Exception of type 'System.OutOfMemoryException' was thrown.
Stack Trace: 
    at System.String.ReplaceInternal(String oldValue, String newValue) 
    at System.String.Replace(String oldValue, String newValue) 
    at dotless.Core.Parser.Tokenizer.SetupInput(String input, String fileName) at dotless.Core.Parser.Parser.Parse(String input, String fileName) 
    at dotless.Core.LessEngine.TransformToCss(String source, String fileName) at dotless.Core.CacheDecorator.TransformToCss(String source, String fileName) 
    at dotless.Core.ParameterDecorator.TransformToCss(String source, String fileName) at dotless.Core.HandlerImpl.Execute() 
    at dotless.Core.LessCssHttpHandler.ProcessRequest(HttpContext context) 
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

较少的文件大小为475KB。作为一个较少的文件,这是正常的吗?

0 个答案:

没有答案