ASP.NET MVC on IIS falls through to the static file handler

前端 未结 5 1480
抹茶落季
抹茶落季 2020-12-24 07:33

I have a problem with an ASP.NET MVC site.

These are the details:

  1. ASP.NET MVC 2
  2. ASP.NET 4 integrated pipeline
  3. IIS 7.5 on Windows Web
5条回答
  •  再見小時候
    2020-12-24 08:01

    I see you fixed your issue, but for anyone googling:

    I had this issue and in my case I just needed to register ASP.NET 4 with IIS. I was deleting and re-adding webs to fix other issues and simply forgot to do that. The command that worked for me was:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i

    Your own .net version may be different, especially if you are in the future, so the above path may not be exactly right.

提交回复
热议问题