Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 17:48
    Lachlann
    0

    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)

          <remove fileExtension=".air" />
          <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
          <remove fileExtension=".svg" />
          <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
          <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
          <remove fileExtension=".eot" />
          <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
          <remove fileExtension=".otf" />
          <mimeMap fileExtension=".otf" mimeType="application/octet-stream" />
          <remove fileExtension=".ttf" />
          <mimeMap fileExtension=".ttf" mimeType="font/ttf" />
          <mimeMap fileExtension=".woff" mimeType="font/x-woff" />

    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

     

  • Benjamin Howarth 305 posts 771 karma points c-trib
    Jun 23, 2012 @ 18:01
    Benjamin Howarth
    0

    Hi Lachlann,

    Few questions:

    1. Have you checked the app pool to confirm you're running .NET4?
    2. Can you confirm whether the app pool is running classic or integrated mode?
    3. Which section is this under - system.web or system.webServer?
    Best,
    Benjamin
  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 18:03
    Lachlann
    0

    Hi Benjamin,

     

    Just checked I am running in .Net4 Integrated

    the mimetypes are added to system.webServer

     

    L

  • Benjamin Howarth 305 posts 771 karma points c-trib
    Jun 23, 2012 @ 18:05
    Benjamin Howarth
    0

    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

  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 18:10
    Lachlann
    0

    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

  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 18:12
    Lachlann
    0

    okay just found Authentication, it is set to Application pool identitiy

     

    L

     

  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 18:22
    Lachlann
    0

    Hmm have tried fiddeling about with it but it doesnt seem to make any difference

    L

     

  • Benjamin Howarth 305 posts 771 karma points c-trib
    Jun 23, 2012 @ 18:23
    Benjamin Howarth
    0

    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)?

  • Lachlann 343 posts 625 karma points
    Jun 23, 2012 @ 18:32
    Lachlann
    0

    Yeah I have removed and re added all permissions to the entire site, no luck.

     

    L

     

  • Benjamin Howarth 305 posts 771 karma points c-trib
    Jun 23, 2012 @ 20:22
    Benjamin Howarth
    0

    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

  • Lachlann 343 posts 625 karma points
    Jun 24, 2012 @ 14:12
    Lachlann
    0

    Hi there,

    in my configuration it apears to sit at the very bottom of the list.

     

    L

  • Lachlann 343 posts 625 karma points
    Jun 24, 2012 @ 14:14
    Lachlann
    0

    I tried mving it up but it throws an error when  refresh the site.


    L

  • Lachlann 343 posts 625 karma points
    Jun 25, 2012 @ 20:24
    Lachlann
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies