NetworkError: 404 Not Found - http://www.companyName.com/Content/fonts/ubuntu-regular-webfont.woff2

网站是使用BootStrap框架实现,当站点发布至服务器(Windows Server 2008 R2)IIS之后,显示下面的异常:

Insus.NET跑至相关目录之下检查,这些字体的文件是确实存在的。

为什么这样呢? 令Insus.NET想起前些日子,解决视频PM4的问题《在IIS启用MP4http://www.cnblogs.com/insus/p/5507493.html 肯定又是IIS没有MIME Type的原因:

原web.config配置:

<system.webServer>
    <staticContent>
      <remove fileExtension=".woff"/>
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".woff2"/>
      <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
      <remove fileExtension=".ttf" />
      <mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" />
      <remove fileExtension=".svg" />
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
      <remove fileExtension=".otf" />
      <mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" />
      <remove fileExtension=".eot" />
      <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
    </staticContent>
  </system.webServer>

Source Code

时间: 2024-08-29 16:08:23

NetworkError: 404 Not Found - http://www.companyName.com/Content/fonts/ubuntu-regular-webfont.woff2的相关文章

uploadify3.2.1加载时,报NetworkError 404 Not Found或NetworkError forbidden错误

我用的uploadify的版本是3.2.1 在打开配置了uploadify的页面的时候,什么操作都没有,仅仅是打开了页面,在火狐里可以看到一行报错信息,我的uploadify页面 在"/项目名/jsp/xxx/",火狐就会报"NetworkError: 404 Not Found 或 NetworkError forbidden 403 错误. 问题出现的原因: 发生错误的根本原因是"button_image_url"这个参数,默认在uploadify上有

NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff

解决方法 asp.net 中会遇到一个@font-face 问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 修改方法: 方法一.从 IIS 入手: 选中 iss 里的 MIME Types --> Add... --> File name extension:.woff MIME type:font/opentype 方 法二.从 Web.config 入手 找到项目的 Web.config 文件,在文件的最后<

ubuntu 更新源 或者 apt-get install 出错404 not found ,Failed to fetch

1.考虑是不是能上网 2.用apt-get update ,然后再试试apt-get install 如果apt-get update 也出现很多 404 not found 或者 failed to fetch ,就要考虑更换自己的源,百度搜 /etc/apt/sources.list 3.如果还不行,估计是Ubuntu版本太老了,没有维护的了. 比如我用11.04,sudo apt-get install open-vm-dkms 不行,sudo apt-get  update  不行,就死

The solution for apt-get update Err 404

最近在ubuntu 12.10上执行sudo apt-get update 命令后出现了如下错误: Ign http://extras.ubuntu.com natty/main TranslationIndex Err http://extras.ubuntu.com natty/main Sources 404 Not Found Err http://extras.ubuntu.com natty/main i386 Packages 404 Not Found Ign http://ex

Ubuntu 13.04 获取软件失败 404错误

颓废了好久,今天打开电脑一看想装个软件尼玛居然一大堆错误...什么鬼!! 错误如下: 错误 http://archive.ubuntu.com/ubuntu/ raring/main sqlite3 i386 3.7.15.2-1ubuntu1   404  Not Found [IP: 91.189.91.15 80] 错误 http://extras.ubuntu.com/ubuntu/ raring/main sqlite3 i386 3.7.15.2-1ubuntu1   404  No

cms课程单元页面 课程内容加载不出来

错误信息 "NetworkError: 404 NOT FOUND - http://192.168.33.10:8001/static/js/src/MathJax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full&delayStartupUntil=configured" 解决方法: 在文件夹中解压/common/static/js/src/MathJax.tar(不要在pycharm中解压,因为文件会被加到版本管理中) 总结: 当有文

网站找不到woff字体解决方法

NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 解决方法 asp.net 中会遇到一个@font-face 问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 修改方法: 方法一.从 IIS 入手: 选中 iss 里的 MIME Types --> Add... --> File name extension:.woff MIME type:font/

每日阅读记录 - 20170913

A. Responsive_Navigation_Patterns(响应式导航模式) https://developer.mozilla.org/zh-CN/Apps/Design/Responsive_Navigation_Patterns Top toggle menu Pros(优势): one button in header maximizes space for content on a small screen important items stay visiblein most

python webserver, based on SimpleHTTPServer

1 #-*- coding:utf-8 -*- 2 #author: lichmama 3 #email: [email protected] 4 #filename: httpd.py 5 import io 6 import os 7 import sys 8 import urllib 9 from BaseHTTPServer import HTTPServer 10 from SimpleHTTPServer import SimpleHTTPRequestHandler 11 12