- Posted On 28 July 2015
- In Programming
This is just a simple fix for the error HTTP 404 Not Found for the font files e.g. woff, woff2 etc. used in ASP.NET or MVC or Azure.
Many designers now days use font awesome which has the .woff within it. So if you have used the same with your website hosted in IIS then you might facing the same issue.
Every file that gets requested from server must have valid MIME type in the request so if there is a problem with these MIME types you face such errors.
To resolve this issue just open web.config file of your site and add the following content under configuration section.
<system.webServer> <staticContent> <remove fileExtension=".woff" /> <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> </staticContent> </system.webServer>
If you are already having the <system.webServer> defined then just add the innner content.
Hope this simple post have been benefited to you. Thanks.
Top 10 Visual Studio things which can boost developers coding speed
Visual Studio 2012 provides some coding features by which you can code faster if use them properly. This post will cover top 10 things among them to boost your development speed.
How to call click or any event only once in jQuery
Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.
Visual Studio 2008 Shell and TFS integration
Visual Studio 2008 Shell and TFS integration is the problem for all newbies of BIDS and TFS. Here is the solution.
Assembla - Free and private repository to manage your source code online with SVN subversion hosting
With Assembla you can share source code with others online. Free & Private source code repository with SVN Subversion, Git & Perforce Hosting.
Speed up coding in Visual Studio with code snippets & samples at your fingertips
Know how you can speed up coding in Visual Studio with Bing Developer Assistant by having millions of code snippets and sample projects at fingertips.