Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 4 bundles are not working under mono v3

WebOptimization framewooks seems to not works correctly under mono in release mode

WebOptimization framewooks seems to not work correctly under mono in release mode

However it works fine if i set debug="true" option in web. config

I tried different things found over internet to fix this issue on IIS like setting module:

 <modules runAllManagedModulesForAllRequests="true">
  <remove name="BundleModule" />
  <add name="BundleModule" type="System.Web.Optimization.BundleModule" />
</modules>

Seems routes are not registered properly. Please advise.

like image 701
flamedmg Avatar asked Feb 07 '13 12:02

flamedmg


People also ask

How to enable bundling in MVC?

Bundling and minification is enabled or disabled by setting the value of the debug attribute in the compilation Element in the Web. config file. In the following XML, debug is set to true so bundling and minification is disabled. To enable bundling and minification, set the debug value to "false".

What is difference between bundling and minification?

Both bundling and minification are the two separate techniques to reduce the load time. The bundling reduces the number of requests to the Server, while the minification reduces the size of the requested assets.

What is bundle optimization?

Bundling and minification are the performance optimization techniques that can help to improve load time by reducing the number of requests to the server and reducing the size of requested assets (such as JavaScript and CSS.)

What is mvc4?

ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of the ASP.NET and the . NET framework. This new, fourth version of the framework focuses on making mobile web application development easier.


1 Answers

Found solution myself:

Also ensure you delete Microsoft.Web.Infrastructure.dll as Mono has its own implementation of this assembly (Microsoft's implementation is dependent on IIS).

After i deleted that file from BIN directory - everyting is working fine. Thank you MONO developer team. Answer was found here mono mail archive

Hope this will help somebody!

like image 50
flamedmg Avatar answered Sep 30 '22 04:09

flamedmg