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)
-
0
Are you getting this error with a specific file or all of them? I faced same problem it was something related to bundling.
-
0
<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.
-
0
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.
-
0
I host my site on Azure. Also I have not tried to add MIME types on IIS.
-
0
Hi,
I haven't tried this but can you try it like this:
<staticContent> <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> </staticContent>
-
0
The above fix did not work. Please keep suggesting on how to get rid these error.
-
0
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.