Reputation: 15488
I've got an app I started with ASP.NET MVC4 WebAPI project. somehow, my css is not getting rendered when I have BundleTable.EnableOptimizations Defaulted (which is true). When I set it to false (in my RegisterBundles.cs) file, the web site renders correctly.
What I'm seeing in my network traffic (which is failing with an http status 403, forbidden.
http://localhost:17138/Content/Styles/?v=xz2jRv8a4HMY4rDzixZn1RlC6AERf9qY0Gh7MavTpZE1
I keep comparing this to a default empty new project which works and I can't figure out what I'm missing.
THanks
Upvotes: 0
Views: 797
Reputation: 50728
See this link, which suggests that the issue is with the /Content/Styles folder existing in your project: ASP.NET MVC framework 4.5 CSS bundles does not work on the hosting
As the answer there suggested, since the folder exists on disk, IIS handles the request.
Upvotes: 2