title: ASP MVC Less file gives: Exception has been thrown by the target of an invocation
body: <p>I have a simple asp.net mvc 4 site that uses less files.
  When i run it on my local pc it works fine, but when i publish it to the server I get te following error:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>stacktrace:</p>
  
  <pre><code>[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&amp; completedSynchronously) +165
  </code></pre>
  
  <p>For rendering the less files i use the BundleTransformer.Less
  and in the web.config i added 
  in bundletransformer:</p>
  
  <pre><code>&lt;less useNativeMinification="false" ieCompat="true" strictMath="false" strictUnits="false" dumpLineNumbers="None"&gt;
        &lt;jsEngine name="V8JsEngine" /&gt;
      &lt;/less&gt;
  </code></pre>