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)
-
0
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.