What is the proper way to map .html to the ASP.NET pipeline in IIS7

前端 未结 2 1977
猫巷女王i
猫巷女王i 2021-01-23 01:40

I have a .net application I want to respond to .htm and .html requests (in addition to .aspx). I know how to do this in IIS6, but not in IIS7. Someone please enlighten me!

2条回答
  •  执念已碎
    2021-01-23 02:13

    Handler Mappings
    Click 'Add Script Map' on the right
    Then:

    Request path: "*.html"
    Executable: "%windir%\Microsoft.NET\Framework\v2.0.5 0727\aspnet_isapi.dll"
    Name: "YOURNAME"

    have you tried classic mode?

提交回复
热议问题