none
如何设置IIS,可以解析vbhtml 和 cshtml文件 RRS feed

答案

  • 你好,

    你可以通过配置requestFilter 来enable vbhtml 和 cshtml.

    <system.webServer>
      <security>
       <requestFiltering>
         <fileExtensions>
           <remove fileExtension=".cshtml" />
           <remove fileExtension=".vbhtml"/>
           <add fileExtension=".vbhtml" allowed="true"/>
           <add fileExtension=".cshtml" allowed="true" />
         </fileExtensions>
        </requestFiltering>
      </security>
    </system.webServer>

    详细信息你可以参考这个文档:

    http://www.asp.net/web-pages/overview/more-resources/aspnet-web-pages-(razor)-troubleshooting-guide


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年9月4日 1:41