With ASP.NET MVC 5 and Bootstrap 3 default install, why do styles get a 403 error and fonts throw a 404?

前端 未结 2 1913
甜味超标
甜味超标 2021-02-14 17:51

With a default install of ASP.NET MVC 5 and an updated Bootstrap 3, loading my project\'s home page does not display CSS styles or the included font glyphicons (404 file not fou

2条回答
  •  生来不讨喜
    2021-02-14 18:56

    I too was struggling with this miserably.

    There has been an update to the Twitter.Bootstrap nuget package from 3.0.1 => 3.0.1.1. The Twitter.Bootstrap package is now just Bootstrap and has been moved to be managed by the Outercurve foundation.

    Chris Kirby has changed the folder structures by eliminating the Content/Bootstrap directory and placing all boostrap.css files directly in the Content folder. He also moved the fonts directory into the root of the site.

    See more here; (http://chriskirby.net/bootstrap-nuget-package-moving-to-outercurve/)

    This resolved the issue I was having and resolved all my glyphicon font issues.

提交回复
热议问题