So I have a project where I want to change the theme of BootStrap. So, I took theme from BootSwatch and the theme is selected is Lumen. Now in my Bundle.Config file, I made below changes.
bundles.Add(new StyleBundle("~/Content/css").Include(
//"~/Content/bootstrap.css",
"~/Content/bootstrap-lumen.css",
"~/Content/superslides.css",
"~/Content/site.css"));
}
Now as soon as I start using the Lumen Theme, I get error (in dev tool) as below:
P.S: This does not happen when I use normal BootStrap theme. I looked into SO Answer. But it talks about making IIS changes and all. But my problem only occurs when I use LUMEN theme. How to get rid of this issue?
I have downloaded the missing files from here and added those in
fonts
folder of my project.Then added these lines within
<system.webServer>
section inweb.config
file of my project:In your case, download glyphicons-halflings-regular.woff2 file.
I had a similar issue with WordPress. I had a folder on the root of the directory with a path to the font, and for some reason, I got net::ERR_ABORTED and 404 (Not Found). So what I did was to move those fonts to
wp-content/plugins
where other fonts were defined such as FontAwesome... and it works!As an alternate to Reyan Chougle's answer, this can also be fixed through IIS:
NOTE: Tested on IIS 8.5 in the Chrome web browser
I was facing the same issue.
In first attempt, I have added the MIME type (font-woff2) directly at the IIS server, it worked. However after deployment(CI/CD) MIME type automatically got removed.
In Second attempt, I have added staticContent tags in web.config and it worked like a permanent fix.