views:

5419

answers:

3

I am having trouble deploying an asp.net MVC app to IIS7.

I have an MVC project created with asp.net mvc beta 1. It consists of nothing more than the default template unmodified.

The app runs just fine within VS2008, but when I publish it to a local IIS7 website (http://localhost), I get the following server error:

The incoming request does not match any route

I have also tried unsuccessfully to access http://localhost/Home/About (a route to a specific page within the template). This returns a 404 error.

I have recreated the website in IIS several times and ensured the pipeline mode is set to integrated. My IIS7 server is running on my Vista Home Premium machine.

I am assuming this is an IIS configuration issue any suggestions as to configuration issues with asp.net mvc apps would be appreciated.

Any thoughts?

+1  A: 

Does IIS run ok with the default IIS7 site?

Are you receiving any Event Viewer messages?

CVertex
I have a number of asp.net(not MVC) sites successfully running on this machine. The message suggests to me it is originating from the routing feature.
HectorMac
Copy n paste the error messages online so we can see them to help u find an answer
CVertex
+1  A: 

Is IIS in Integrated Mode? If it's not, you'll have to do some setup or change it to Integration Mode

ajma
+3  A: 

http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

This solved all my problems.

jdelator