I'm running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it.
However, every time I try to run an MVC app, I get the following error:
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Detailed
Error Information
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile Error
Code 0x00000000 Requested
URL http://localhost:80/mySite/
Physical Path C:\myProject\mySite\
Logon Method Anonymous Logon
User Anonymous
I placed a default.aspx
file in the directory and I received the following error:
HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
Are there any other steps I forgot to take to get this working?
Notes: I installed IIS 7.5 after installing VS 2010 RC. I used the built-in "Create Virtual Directory" button under the "Web" tab in the MVC project's "Properties" in Visual Studio 2010. I made sure that the application is using the ASP.NET 4 App Pool.
Below are the installed features of IIS I have.
I was also receiving this error and discovered that "HTTP Redirection" was not turned on in Windows Server. This blog post points this out as well: http://blogs.msdn.com/b/rjacobs/archive/2010/06/30/system-web-routing-routetable-not-working-with-iis.aspx
As strange as it may seem, reinstalling IIS was what has worked for me, with the following command run from inside the .net version folder:
When I first run this command, I begun getting the HTTP Error 403.14. But once I runned the command again it solved the problem.
Obs: Another thing I also did was to remove HTTP Redirect from the server features in Server Management screen before reiinstalling IIS. Maybe this also had an impact in solving the problem, but I am not sure. So, if reinstalling IIS still doesn't work, please try removing HTTP Redirect and try again. Hopefully it may work for you too.
To solve this problem without having to resort to 32 bit mode you will have to update the source code for this project
I have raised this issue as a discussion on the discussion board at the IT cloud codeplex project.
http://itcloud.codeplex.com/discussions/262000
Also if your app is precompiled you should have
PrecompiledApp.config
in the root folder of your app otherwise you could get
HTTP Error 403.14
as well.You can solve this error by running cmd as admin than
Do the same as in picture for windows 32 bit
Just make changes in 64 bit as framework64 instead of framework only Than go to iis and refresh the site
If u still got some error make changes in application pool
This worked for me and it might be useful to another one.
Maybe all components required are not present or/and not all are registered correctly. In order to solve this, try to uncheck all options inside Control Panel -> Turn Windows features on or off -> Internet Information Services -> World Wide Web Services -> Application Development Features, uncheck all options and recheck all then reset the IIS and check if the problem is solved.