I have set up a fonts folder in the root of the site install /fonts. I have setup the mime type for IIS 7 (both using the IIS 7 interface as well as within the web config)
OK. What identity is the app pool running under? Also, when you go to "Authentication", right-click on Anonymous Authentication, click Edit - is the principal listed as "IUSR", or "Application pool identity"?
For the files to be read anonymously they need to have sufficient permissions set on them, which (weirdly, in IIS7) can throw a 404, not a 403, error.
Have you checked the individual font files to see if Network Service has read permissions on those files (i.e. the permissions have propagated downwards throughout the folder tree)?
There's one more thing it could be. In IIS7, in the site itself, if you open up the HTTP Handlers section, and go "View Ordered List", where does "Static File" sit in this list - it should be above "PageHandlerFactory (*.aspx)".
Okay, I finally got it working. For some reason it was throwing a 404 which I couldnt figure out even after compelting all of the above suggested steps. I then tried redownloading the font and hey presto it works. Now I have no idea why it was throwing a 404 for a font which was corrupt? a bit puzzled but its workign so I am happy!
Not sure which answer above to suggest is the correct answer I suspect that making sure the mime tyes were defined is the most likley fix.
Font family local host mimetypes
Hi Guys,
I am tearing my hair out at the moment,
I have an install of 4.7.1 running locally.
I am trying to use a local fontfamily.
I have set up a fonts folder in the root of the site install /fonts. I have setup the mime type for IIS 7 (both using the IIS 7 interface as well as within the web config)
However
when ever I try to access any of the font files (.otf , eot etc) I get a 404. (well I get that No umbraco document matches the url error)
I am at a bit of a loss I assume this is to do with mime type setups but I am not sure what more I can do. Any help would be very mch appreciated.
Best
L
Hi Lachlann,
Few questions:
Hi Benjamin,
Just checked I am running in .Net4 Integrated
the mimetypes are added to system.webServer
L
OK. What identity is the app pool running under? Also, when you go to "Authentication", right-click on Anonymous Authentication, click Edit - is the principal listed as "IUSR", or "Application pool identity"?
For the files to be read anonymously they need to have sufficient permissions set on them, which (weirdly, in IIS7) can throw a 404, not a 403, error.
Best,
Benjamin
Okay,
the app pool is running under NetworkService
Im not sure what you mean by got to Authentication.
When i got to edit permissions on the root. I have Mod, Read+exe, list folder, read and write permissions for IUSR, Network service and IIS_IUSRS
L
okay just found Authentication, it is set to Application pool identitiy
L
Hmm have tried fiddeling about with it but it doesnt seem to make any difference
L
Have you checked the individual font files to see if Network Service has read permissions on those files (i.e. the permissions have propagated downwards throughout the folder tree)?
Yeah I have removed and re added all permissions to the entire site, no luck.
L
There's one more thing it could be. In IIS7, in the site itself, if you open up the HTTP Handlers section, and go "View Ordered List", where does "Static File" sit in this list - it should be above "PageHandlerFactory (*.aspx)".
B
Hi there,
in my configuration it apears to sit at the very bottom of the list.
L
I tried mving it up but it throws an error when refresh the site.
L
Okay, I finally got it working. For some reason it was throwing a 404 which I couldnt figure out even after compelting all of the above suggested steps. I then tried redownloading the font and hey presto it works. Now I have no idea why it was throwing a 404 for a font which was corrupt? a bit puzzled but its workign so I am happy!
Not sure which answer above to suggest is the correct answer I suspect that making sure the mime tyes were defined is the most likley fix.
Thanks again for you help!
L
is working on a reply...