Getting 404 error on MVC web-site

前端 未结 14 1099
暗喜
暗喜 2020-12-06 05:49

I have an IIS7.5 web-site, on Windows Server 2008, with an ASP.NET MVC2 web-site deployed to it. The website was built in Visual Studio 2008, targeting .NET 3.5, and IIS 5.1

14条回答
  •  春和景丽
    2020-12-06 06:22

    We finally nailed this issue by exporting the IIS configuration of a working server, and comparing it to ours.

    It was a really obscure setting which had been changed from the default.

    IIS ROOT → request Filtering → Filename Extensions Tab → Edit Feature Settings → Allow unlisted file name extensions

    This should be ticked.

    This can be set at the IIS level, or the site-level.

    Screenshot of IIS showing location of Request Filtering option

提交回复
热议问题