Base solution for your next web application
Open Closed

Icons not displaying in IIS #4114


User avatar
0
advaniamobilepay created

Hi,

I've published an Angular 2 project on IIS and the icons are not displaying. Everything else works fine.

I'm getting this error in chrome: Simple-Line-Icons.0cb0b9c589c0624c9c78 Failed to load resource: the server responded with a status of 404 () fontawesome-webfont.af7ae505a9eed503f8b8 Failed to load resource: the server responded with a status of 404 () famfamfam-flags.d4a4d7b033f5ad8d7261 Failed to load resource: the server responded with a status of 404 () Simple-Line-Icons.d2285965fe34b0546504 Failed to load resource: the server responded with a status of 404 () fontawesome-webfont.fee66e712a8a08eef580 Failed to load resource: the server responded with a status of 404 ()

The project works fine locally. Does anyone know how to fix this?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @AdvaniaMobilePay,

    Normally those files must be in the published directory for angular project. If those files are there, you may need to add required mime types to IIS (.woff and .woff2 for exmaple) You can search on the web to learn how to do it.