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

前端 未结 2 1978
猫巷女王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?

    0 讨论(0)
  • 2021-01-23 02:24

    What do you mean when you say you want this application to "handle" .html files? What do you expect it to do? Run HttpModules? Do you have your own handler?

    Because IIS7 has integrated the ASP.NET pipeline. The IIS7 pipeline is now the same as the ASP.NET pipeline. I'm not sure there's anything special you need to do anymore.

    0 讨论(0)
提交回复
热议问题