【发布时间】:2015-11-24 20:35:56
【问题描述】:
ASP.NET MVC4 Bootstrap 3 应用程序从 Microsoft Visual Studio Express 2013 for Web IDE 运行。
Chrome 控制台总是显示错误
http://localhost:52216/admin/fonts/glyphicons-halflings-regular.woff2
Failed to load resource: the server responded with a status of 404 (Not Found)
此文件存在于解决方案资源管理器的字体目录中。构建操作设置为“内容”,复制到输出目录为“不要像在其他字体文件中一样复制”。 使用 NuGet 将 Bootstrap 3 添加到解决方案中。 如何解决此问题,以免发生此错误? 应用程序正确显示 Glyphicon 和 FontAwesome 图标。此错误总是在应用程序启动时发生。
【问题讨论】:
标签: asp.net-mvc twitter-bootstrap visual-studio asp.net-mvc-4 glyphicons