Visual Studio 2015 Error 500.19

半城伤御伤魂 提交于 2019-12-23 14:50:37

问题


I have problem with opening project in VS 2015. In VS 2012, and VS 2013 is everythink ok. But when I start web application in VS 2015, I got error 500.19 while loding css and js files.

I know, that it shoud be because of permissions, so I set NETWORK, NETWORK SERVICE and IIS_IUSRS to read, write, modify on my project folder, but it did not help.

Have anyone idea?


回答1:


Finally I can handle with it. I just need to remove from my web.Config

<staticContent>
    <mimeMap fileExtension=".less" mimeType="text/css" />
</staticContent >



回答2:


If you want to use your mimeMap instead of the one on IIS, just change your config file to remove the existing before adding yours:

 <staticContent>
     <remove fileExtension=".less" />
     <mimeMap fileExtension=".less" mimeType="text/css" />
 </staticContent >


来源:https://stackoverflow.com/questions/30050290/visual-studio-2015-error-500-19

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!