Whenever I deploy my MVC.Net application in release mode, the following configuration will be present in the web.config file:
<compilation debug="false" targetFramework="4.5" />
After making the above changes, the site loads with CSS and JavaScript but developer tools reveal a series of URL bundles returning 404 errors.
I've also attempted the following code which still doesn't load the scripts and style sheets:
BundleTable.EnableOptimizations = true;
Could someone assist me in resolving this issue? These problems are causing caching issues with script and CSS files in my application. With each new release, I have to instruct my customers to clear their browser cache to ensure that the new features work properly.