Bootstrap Icons not showing in published ASP.NET MVC application

后端 未结 17 2009
孤城傲影
孤城傲影 2021-01-30 11:30

--- NB: Go to the EDITED 2 section for summary ----

I have an ASP.NT MVC (4) application. I integrated (twitter)Bootstrap to it. Bootstrap is working perfectly, but the

17条回答
  •  心在旅途
    2021-01-30 11:56

    I was also having this issue with MVC 5 and Bootstrap v3.3.6.

    Failed to load resource: the server responded with a status of 404 (Not Found) http://NameOfSite/Error/NotFound?aspxerrorpath=/bundles/fonts/glyphicons-halflings-regular.woff2

    You need to update the @icon-font-path in theContent/bootstrap/variables.less file from "../fonts/"; to "/Content/fonts/";

提交回复
热议问题