Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (45.3k points)
edited by

I am trying to add bootstrap glyphicons-halflings-regular.svg to my web site. Locally everything works fine, but on Azure, I have 404 errors:

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

or when I add below staticContent section to my web.config


    <remove fileExtension=".woff" />

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

    <remove fileExtension=".ttf" />

    <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />

    <remove fileExtension=".svg" />

    <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />


I got this error:

The controller for path '/Content/fonts/glyphicons-halflings-regular.woff' was not found or does not implement IController.

How should I properly configure my ASP.NET site to avoid the above errors?

1 Answer

0 votes
by (16.8k points)

Hey, I guess, you did not include the font files into the solution, which is causing it to show that the publishing website does not contains this files

Browse Categories