Bootstrap Icons not showing in published ASP.NET MVC application

后端 未结 17 1980
孤城傲影
孤城傲影 2021-01-30 11:30

--- NB: Go to the EDITED 2 section for summary ----

I have an ASP.NT MVC (4) application. I integrated (twitter)Bootstrap to it. Bootstrap is working perfectly, but the

17条回答
  •  情歌与酒
    2021-01-30 11:47

    IIS doesn't know how to handle (serve) those files (MIMEs).

    Add this to your system.webServer node in the web.config file and you'll be golden:

        
          
          
          
    
    

    --Edited, see Ryans and mine comment below: Even better, to be safe, remove and add the mime type maping:

        
        
        
        
        
        
    
    

提交回复
热议问题