MVC2 Website hosted on IIS7 shows directory listing not the Home/Index

后端 未结 2 1836
挽巷
挽巷 2020-12-21 01:26

I am trying to host a MVC2 website to IIS. Steps I have followed:

  1. Create a Website in IIS ( define directory defined physical path and app pool)
  2. Publi
2条回答
  •  温柔的废话
    2020-12-21 01:59

    Here are the things you might check:

    1. If your application is using ASP.NET 4 ensure that this is registered in IIS. The following command should register it using the aspnet_regiis.exe tool: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis - ir (adapt the paths with the proper version of the framework if necessary).
    2. Ensure that the application pool which is configured for the website is using Integrated pipeline mode.

提交回复
热议问题