Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,

I have created a project in asp.net using vb and deployed on UAT. Where in this project consists of css stylesheets containing font-awesome icons but theses font-awesome icons do not appear on UAT deployment. Why do this happen? Please suggest the solution
Posted
Comments
Shridhar Gowda 10-Feb-15 6:01am    
Are you sure all file paths are correct?
Member 11377187 10-Feb-15 7:15am    
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />


Above mentionedlink I have used to give a path to font-awesome css.
CHill60 10-Feb-15 7:25am    
and the contents of that path have been copied to UAT?
Member 11377187 10-Feb-15 8:23am    
Yes even contents are passed.
Shridhar Gowda 10-Feb-15 8:19am    
try href="../font-awesome/css/font-awesome.css"
Also try "../../font-awesome/css/font-awesome.css"

1 solution

As well as checking the file paths for the stylesheet and the font files, you'll also need to check the MIME type mapping. IIS doesn't include MIME types for web fonts by default.

This is the web.config file I'm currently using for a fonts directory:
XML
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension="eot" mimeType="application/vnd.ms-fontobject" />
            <mimeMap fileExtension="otf" mimeType="application/x-font-opentype" />
            <mimeMap fileExtension="svg" mimeType="image/svg+xml" />
            <mimeMap fileExtension="ttf" mimeType="application/x-font-truetype" />
            <mimeMap fileExtension="woff" mimeType="application/font-woff" />
            <mimeMap fileExtension="woff2" mimeType="application/font-woff2" />
        </staticContent>
    </system.webServer>
</configuration>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900