Forums - C# Corner

Forum guidelines
U Thu

U Thu

  • 1.5k
  • 279
  • 6.5k

Font Awesome Icon hosting on IIS Server not working problem

Feb 5 2019 5:00 AM
I am using vs 2019 preview and asp.net core 3.0 with creation for web applicaton.My project in using Font Awesome icons and running in localhost.This state in Font Awesome icons is working and Hosting on IIS Server in not working.I am reference from stackoverflow and other site solutions.But not working problems.Please help me.I am add (.eot,.ttf,.svg,.woff,.woff2) MIME types in iis server and next configuration in web.config.
 
<staticContent>
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
 
and IIS Server in Allow File Name Extension added.
 
<security>
<requestFiltering>
<fileExtensions>
<add fileExtension=".woff" allowed="true" />
<add fileExtension=".ttf" allowed="true" />
<add fileExtension=".woff2" allowed="true" />
</fileExtensions>
</requestFiltering>
</security>

Answers (3)