So far, the only successful strategy I’ve been able to get by with is the following:
- Configure YOURAPP.Web to “Use Local IIS Web Server” and set “Project Url” = http://localhost/yourapp.web
- Click “Create Virtual Directory”
- In IIS Manager ensure that “Classic .NET App Pool” is selected
- Add wildcard mapping * named “ASP.NET-MVC” that points to IsapiModule
BUT I don’t really like the idea of having the full ASP.NET pipeline invoked when requesting any resource (javascript file, stylesheet, image, etc…) which is exactly what happens with the wildcard mapping.
So is there a way around this?
Is there a better method to running mvc apps on IIS 7?
I’m definitely open to suggestions as I’m not all that satisfied with what I got so far.
Thanks – wg
Make sure IIS7’s “Managed pipeline mode” is set to “Integrated”. That has been the single most important thing to do (for me) to get my MVC app running smoothly on IIS7.
Here’s a good blog post too.
When developing the app, I have had no issues using the “Visual Studio Development Server” for running the app.