Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
404 error for a file which exists
Message
De
27/02/2015 13:16:02
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01615918
Message ID:
01615940
Vues:
17
Use the code given in the link:
 <system.webServer>
    <staticContent>
      <remove fileExtension=".woff" /> <!-- In case IIS already has this mime type -->
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
    </staticContent>    
  </system.webServer>
>We already have it for woff, do I need to have this
>
><remove fileExtension=".woff2"/>
>      <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2"/>
>
>>Do it in web.config - better than configuring via IIS manager
>>
>>>Update. Found this http://stackoverflow.com/questions/4015816/why-is-font-face-throwing-a-404-error-on-woff-files so looking in various ideas from this right now.
>>>
>>>Hi everybody,
>>>
>>>I am getting this error:
>>>
>>>Failed to load resource: the server responded with a status of 404 (Not Found) showing this file
>>>
>>>http://localhost:5525/Content/macadmintheme/fonts/fontawesome-webfont.woff2?v=4.3.0
>>>
>>>This error is shown in the Dev. Tools when I just open my menu.
>>>
>>>The file is indeed in the project and that location, so I am wondering why I am getting this error.
>>>
>>>Thanks a lot in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform