MVC3 RC app deployed on IIS 6 giving “403 forbidden” error

巧了我就是萌 提交于 2019-12-01 11:44:01

It depends. If you are using extensionless routes then yes there's a special config.

I've just deployed an MVC3 RC app on IIS6.0+win2003 server recently,

To get the route works correct ,all your should do is to intall .net framework4.0. see this blog post from Haacked: http://haacked.com/archive/2010/12/22/asp-net-mvc-3-extensionless-urls-on-iis-6.aspx

Must read: http://haacked.com/archive/2010/12/22/asp-net-mvc-3-extensionless-urls-on-iis-6.aspx

Also, I installed Webmatrix via Web Platform Installer just to make sure that I had all that I needed. Went through 2 reboots and voila~

I had the same problem with Windows Server 2003 IIS6 running a MVC4 app for the first time - in the end a .NET 4 repair (I downloaded the dotNetFx40_Full_x86_x64.exe file from Microsoft and executed it) did the trick!

Recently I again had the same problem on a rebuilt server and this time I had forgotten to check Web Service Extensions (bottom "folder" in IIS6) and found that ASP.NET v4 was Prohibited. I changed it to allowed, restarted IIS Admin Service from Services and it started working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!