Gianni, did you find out what was wrong? I have the same problem.
I call my registerbundles like this:
public class ApplicationComponent : IComponent
{
public void Initialize()
{
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
public void Terminate()
{ }
}
The tags with urls get generated, but I get "Not Found".
If I copy the generated path to a style sheet and paste it into the browser, it does open the file. So it is there but not found...
MVC Bundles not working Umbraco 8
I'm trying to use an MVC BundleConfig for my CSS and Scripts. But in release mode I always get a 404 not found when loading these assets.
My bundleconfig:
I also registered the config at startup
And..
What am I doing wrong here?
How you call RegisterBundles ?
Gianni, did you find out what was wrong? I have the same problem.
I call my registerbundles like this:
The tags with urls get generated, but I get "Not Found".
If I copy the generated path to a style sheet and paste it into the browser, it does open the file. So it is there but not found...
Any help would be appreciated.
Found the solution in case somebody is having the same problem.
You also need to add these values to Web.Config
Note, this is ReservedUrls. I only had them in ReservedPaths.
is working on a reply...