MVC Bundle Not Working with Release Configuration (Debug is False), css and js not loading RRS feed

  • Question

  • Hi,

    When I release MVC.Net application using release mode, the below setting will be available in the web.config file.

    <compilation debug="false" targetFramework="4.5" />

    When we do the above, the site loaded without CSS and JavaScript and developer tools show the bunch of URL bundles returning 404 errors.

    I have also tried the below code which also not loading the script and style sheets.

    BundleTable.EnableOptimizations = true;

    Can someone help me fix this issue? Due to the above issues, my application is running into Caching issue with script and CSS file. Each of my new releases, I have to ask my customers to clear the browser cache to make sure that new functionalities are working fine.



    Monday, October 30, 2017 4:36 PM

All replies