Hi, friends recently, I was working on one task to enable bundling and minification in ASP.NET MVC4 web application that was already running on the internet. I have implemented the bundling and minification and everything was working fine on the local machine but once I deployed the application to the dev environment. Some new errors seem to appear once I run the application as shown below in figure 1.
Figure1: Refused to execute script because its MIME type (‘text/HTML’) is not executable, and strict MIME type checking is enabled.
<add name=”bundleModule” type=”System.Web.Optimization.bundleModule”/>
After implementing this workaround I was able to resolve the problem. I hope this short solution for the error will be helpful to you.