2

I'm having trouble getting font files to be returned by my IIS. The URLs are correct, the mime-types are set correctly, but I'm still getting 404's. Other static files like JS, CSS, LESS are all returned as expected but the dang font files won't return.

This is for a .NET 4.5 project running MVC4 if that helps.

If I move the font files outside of the application, the files are returned correctly. It is almost as if there is some setting within the .NET application that is preventing the font files from being retrieved.

Thanks in advance for any help and let me know if additional information would be helpful.

1 Answers1

1

You probably need to add a MIME type with the file extension of the font.

IIS Can't Serve Certain File Extension

Edit: No, you clearly don't if you've set them already. Incidentally, MIME types can be set on a per-app basis, so you might just want to check the MIME types haven't been overridden in the web.config file. (Searching for the file extension in the web.config file might also net something of interest, or not)

TristanK
  • 9,173
  • 2
  • 30
  • 39