views:

347

answers:

2

I just created a ASP.NET MVC project and was able to build and browse it using the Visual Studio Development Server.

When I tried to change from Visual Studio Development Server to my local IIS (IIS 5.1) under the project properties Web -> Server. I am able to browse to the default page, but when I browse to any other page I get a 404 error.

The root of my site and virtual directory is http://localhost/MyMvcApplication

Is there a different configuration when using IIS?

+1  A: 

You have to setup wildcard mapping to the aspnet_isapi.dll (IIS site configuration). This means that every request to the server is parsed by the .NET DLL so that URL's can be rewritten (MVC heavily relies on URL rewriting).

Ropstah