Copied to clipboard

Flag this post as spam?

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


  • Fabio Milheiro 74 posts 136 karma points
    Sep 26, 2012 @ 19:51
    Fabio Milheiro
    0

    Can't read font files in Umbraco

    I had my templates in simple HTML but when I put my templates, scripts and css in the Umbraco site. The fonts stopped being picked up.

    At first I thought it was a path thing, but it wasn't. Whenever I try to type the URL of the referenced font I get an error.

     

    Page not found

    No umbraco document matches the url 'http://localhost/login.aspx?ReturnUrl=/css/bliss-heavy.otf'

    umbraco tried this to match it using this xpath query'/root/* [@urlName = "login"] | /root/*/* [@urlName = "login"]')

     

    I know my path is correct because when I try a slightly different path I get the obvious error:

    Server Error in Application "LOCAL.DOTAGENCYLONDON.CO.UK"

    Internet Information Services 7.5

    Error Summary

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

     

    In my web.config file I have:

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

    What should I look for now?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 26, 2012 @ 21:13
    Jan Skovgaard
    0

    Hi Fabio

    What server version are you running? IIS 7.5? ISSexpress 7 or 8, or?

    And are you positive that if you remove the reference to the font that the error goes away? If so...have you tried deleting the ClientDependency files in the App_Data/TEMP folder?

    Looking forward to hearing more from you.

    /Jan

  • 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