MVC3 RC app deployed on IIS 6 giving "403 forbidden" error

12,024

Solution 1

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

Solution 2

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

Share:
12,024
Brady Moritz
Author by

Brady Moritz

Serial entrepreneur, current ventures being Setiri Group, Deadlywind Paintball, and several others. Typically work with .Net MVC technology to build large content web apps such as Bank of America Locations app and many others. Contact me if you like via brady dot moritz at gee mail dot com

Updated on June 05, 2022

Comments

  • Brady Moritz
    Brady Moritz almost 2 years

    I've deployed a very simple MVC3 RC app to an IIS 6 + Windows 2003 server. I'm just getting a "403 forbidden" error when trying to accesss the root. Right now the app is only one page, so there are no others to try out.

    I noticed there is no longer a default.aspx in the root to handle default requests, could this maybe be the problem? Or is there some special config needed for IIS 6?

  • Brady Moritz
    Brady Moritz over 13 years
    I turned on wildcard mapping for now. bleh ;)
  • Brady Moritz
    Brady Moritz over 13 years
    I'm not able to test this, but it does look like this might be the solution.
  • Brady Moritz
    Brady Moritz over 13 years
    Actually in my specific case, I already had disabled extensionless urls on my server due to other incompatibilities. fun ;/
  • user1539401
    user1539401 about 12 years
    I found wildcard mapping solved the problem - was using ASP.Net 4 and MVC3 on IIS6/Windows 2003 and in spite of the "should just work" idea introduced with MVC3 it didn't for me.
  • David Keaveny
    David Keaveny almost 12 years
    This works particularly if you are getting 403 errors. If you apply this step and are getting 404 errors, try the following : twentyeighttwelve.com/…