【发布时间】:2015-04-15 10:05:25
【问题描述】:
我有一个使用较少文件的简单 asp.net mvc 4 站点。 当我在本地电脑上运行它时,它工作正常,但是当我将它发布到服务器时,我收到以下错误:
During the output text content of processed asset an unknown error has occurred.
See more details:
Exception has been thrown by the target of an invocation.
堆栈跟踪:
[HttpException (0x80004005): During the output text content of processed asset an unknown error has occurred.
See more details:
Exception has been thrown by the target of an invocation.]
BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessRequest(HttpContextBase context) +1895
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
为了渲染更少的文件,我使用了 BundleTransformer.Less 在我添加的 web.config 中 在捆绑变压器中:
<less useNativeMinification="false" ieCompat="true" strictMath="false" strictUnits="false" dumpLineNumbers="None">
<jsEngine name="V8JsEngine" />
</less>
【问题讨论】:
-
有内部异常吗?该错误通常意味着“我调用的某个组件引发了异常”,您需要知道那个异常是什么。
-
没有内部异常
-
您使用的是什么版本的 JavaScriptEngineSwitcher 包?
标签: c# asp.net-mvc asp.net-mvc-4 less bundletransformer