I searched for SO - found many questions, although none of the answers helped.
I created a bunch of sites and have not encountered this problem before.
Essentially, my script package results in 404 for each of the files in my javascript folder.
My structure (at the moment I changed a bunch of it!) Looks like this:

I do this, so I can guarantee that ASP.Net will not change the order - I can guarantee that some scripts are ahead of others. This is how I always did it, and it works fine.
My script package - for now - is:
public static void RegisterBundles(BundleCollection bundles) { bundles.FileSetOrderList.Clear(); // stlyes StyleBundle cssBundle = new StyleBundle("~/bundles/css"); cssBundle.IncludeDirectory("~/content/css", "*.css", true); bundles.Add(cssBundle); //scripts ScriptBundle jsBundle = new ScriptBundle("~/bundles/jscript"); jsBundle.IncludeDirectory("~/content/javascript", "*.js", true); bundles.Add(jsBundle); }
I tried a bunch of virtual paths.
My CSS loads perfectly. My Js - I get a list of 404; one for each of the * / js files.
Any ideas?
My console looks like this: it also shows me that bundles.FileSetOrderList.Clear(); doesn't actually clear my list, otherwise I will have jquery up to angular (like mine)

UPDATE
If I BundleTable.EnableOptimizations = true; in my bundles, then all this is connected, minimized and works - although this sucks for developing debugging - what really interferes with working in debug mode ?!
Darren
source share