首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure MVC5 BundleTransformer较少内存不足

Azure MVC5 BundleTransformer较少内存不足
EN

Stack Overflow用户
提问于 2015-09-26 21:20:33
回答 2查看 515关注 0票数 0

我给我的网站刷新和利润重写我的Css到少。该网站是一个使用MVC5和BundleTransformer的web azure应用程序,适用于Js和更低版本。在本地iis10和iisExpress上一切正常。

但在部署到azure之后。我用以下命令赢得了magnific 500:

代码语言:javascript
复制
Exception: BundleTransformer.Core.Translators.AssetTranslationException 
    InnerException: JavaScriptEngineSwitcher.Core.JsRuntimeException: Out of memory 
    ---> MsieJavaScriptEngine.JsRuntimeException: Out of memory bei MsieJavaScriptEngine.ActiveScript.ActiveScriptJsEngineBase.InvokeScript(Action action) bei 
    JavaScriptEngineSwitcher.Msie.MsieJsEngine.InnerExecute(String code) 
    --- Ende der internen Ausnahmestapelüberwachung 
    --- bei JavaScriptEngineSwitcher.Msie.MsieJsEngine.InnerExecute(String code) 
    bei BundleTransformer.Less.Compilers.LessCompiler.Initialize() 
    bei BundleTransformer.Less.Compilers.LessCompiler.Compile(String content, String path, DependencyCollection dependencies, CompilationOptions options) 
    bei BundleTransformer.Less.Translators.LessTranslator.InnerTranslate(IAsset asset, LessCompiler lessCompiler, Boolean enableNativeMinification) 
    Message: During translation of LESS-code, readed from the file '/Content/less/light.less', to CSS-code error has occurred. 
    See more details: Out of memory StackTrace: bei BundleTransformer.Less.Translators.LessTranslator.InnerTranslate(IAsset asset, LessCompiler lessCompiler, Boolean enableNativeMinification) 
    bei BundleTransformer.Less.Translators.LessTranslator.Translate(IList`1 assets) bei BundleTransformer.Core.Transformers.TransformerBase.Translate(IList`1 assets, Boolean isDebugMode) 
    bei BundleTransformer.Core.Transformers.TransformerBase.Transform(IList`1 assets, BundleContext bundleContext, BundleResponse bundleResponse, VirtualPathProvider virtualPathProvider, Boolean isDebugMode) 
    bei BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse, Boolean isDebugMode) 
    bei System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles) 
    bei System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context) 
    bei System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath) 
    bei System.Web.Optimization.AssetManager.EliminateDuplicatesAndResolveUrls(IEnumerable`1 refs) 
    bei System.Web.Optimization.AssetManager.DeterminePathsToRender(IEnumerable`1 assets)
    bei System.Web.Optimization.AssetManager.RenderExplicit(String tagFormat, String[] paths) 
    bei ASP._Page_Views_Shared__Layout_cshtml.Execute() in d:\home\site\wwwroot\Views\Shared\_Layout.cshtml:Zeile 42. 
    bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy() bei System.Web.Mvc.WebViewPage.ExecutePageHierarchy() 
    bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) 
    bei System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) bei System.Web.WebPages.WebPageBase.PopContext() 
    bei System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) 
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) 
    bei System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
    bei System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) 
    bei System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) 
    bei System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) bei System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) 
    bei System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) 
    bei System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) bei System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)

我在网上找到的唯一线索是this

有什么想法吗?谢谢。

EN

回答 2

Stack Overflow用户

发布于 2015-09-28 03:16:21

我把引擎换成了

代码语言:javascript
复制
<jsEngine name="V8JsEngine" />

现在它在azure上工作:)

票数 1
EN

Stack Overflow用户

发布于 2015-12-09 19:20:08

最有可能的是,服务器上安装了旧版本的Internet Explorer (版本9.0之前),该版本不支持Chakra JavaScript引擎。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32797652

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档