WebOptimization framewooks seems to not works 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.
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".
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.
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.)
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With