Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Getting .woff errors when the site is hosted. #3122


User avatar
0
sparkyjr created

I am getting .woff (500 Internal server error) when my website is hosted on the server. I have tried adding the following line to the web config. <staticContent> <remove fileExtension=".woff" /> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> </staticContent>

Also I have tried some help from the internet , but it did not help.


7 Answer(s)
  • User Avatar
    0
    bilalhaidar created

    Are you getting this error with a specific file or all of them? I faced same problem it was something related to bundling.

  • User Avatar
    0
    sparkyjr created

    <cite>drcgreece: </cite> Are you getting this error with a specific file or all of them? I faced same problem it was something related to bundling.

    I am getting for 4-5 files , the name are all encrypted on the server but the errors appear on all the pages. Could you please share your bundling solution.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sparkyjr,

    Do you host your app on azure or on a dedicated server ? Also, did you try to ad mime types to IIS ?

    Thanks.

  • User Avatar
    0
    sparkyjr created

    I host my site on Azure. Also I have not tried to add MIME types on IIS.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I haven't tried this but can you try it like this:

    <staticContent> <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> </staticContent>

  • User Avatar
    0
    sparkyjr created

    The above fix did not work. Please keep suggesting on how to get rid these error.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry, I don't have any other suggestion than this and probably this is not related to AspNet Zero. Maybe you should check your website's logs on azure, there must be a error message about this 500 error. It should help you.

    Thanks.