2013-07-26 3 views
3

참조 웹 응용 프로그램을 배포하려고합니다. http://fortawesome.github.io/Font-Awesome/IIS 500 오류 - .ttf, .svg 및 .woff 글꼴 파일에서 URL을 실행하지 못했습니다?

모든 것이 잘 작동하지만, 배포 할 때 몇 가지 오류가 발생합니다. 같은 Why is @font-face throwing a 404 error on woff files?

내 web.config 파일에 추가 :

<system.webServer> 
    <staticContent> 
     <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> 
     <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> 
    </staticContent> 
... 

내가 IIS가 IISRESET를 호출 한 후 이러한 변경 사항을 반영 볼에 StackOverflow의 빠른 검색이 글타래에 저를 이끌어

> GET 
> http://localhost/csweb/Content/font_awesome/font/fontawesome-webfont.ttf 
> 500 (Internal Server Error) 

> GET 
> http://localhost/csweb/Content/font_awesome/font/fontawesome-webfont.woff 
> 500 (Internal Server Error) 

> GET 
> http://localhost/csweb/Content/font_awesome/font/fontawesome-webfont.svg#fontawesomregular 
> 500 (Internal Server Error) 

배포 된 응용 프로그램에는 아무런 영향이 없었습니다.

다른 확실한 답을 찾지 못했습니다. 아무도 모른 답니다.

답변

3

오, 이봐, 나는 거의 즉시 그걸 알아 냈어. web.config에 다음 줄을 추가해야합니다.

<httpHandlers> 
     <add verb="GET" path="*.woff" type="System.Web.StaticFileHandler" /> 
     <add verb="GET" path="*.ttf" type="System.Web.StaticFileHandler" /> 
     <add verb="GET" path="*.svg" type="System.Web.StaticFileHandler" /> 
     ... 
+0

이것은 IIS 서버를 완전히 손상 시켰습니다. – Jake