Assuming the website is hosted on top of iis express, open the file
C: \ Users \\ Documents \ IISExpress \ Config \ ApplicationHost.config
and tag search
<staticContent lockAttributes="isDocFooterFileName">
and add MIME unchanged as below
<mimeMap fileExtension=".latex" mimeType="application/x-latex" />
<mimeMap fileExtension=".less" mimeType="text/css" />
<mimeMap fileExtension=".lit" mimeType="application/x-ms-reader" />
source share