我有一个使用较少文件的简单 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 中添加了 bundletransformer:
<less useNativeMinification="false" ieCompat="true" strictMath="false" strictUnits="false" dumpLineNumbers="None">
<jsEngine name="V8JsEngine" />
</less>