Malcolm
Malcolm

Reputation: 12864

ASP.NET MVC app not browsing to pages only Index.aspx on root

I have an MVC 1.0 app just setup but it only shows the Index.aspx page of Home.

Seems like the routing engine is not being engaged.

I get a 404 error when i try to browse other pages.

Any ideas why this might be?

Malcolm

Upvotes: 1

Views: 86

Answers (1)

Amadiere
Amadiere

Reputation: 11416

It's probably that the ASP.NET DLL isn't being called for your request. If you are talking about IIS, Phil Haack has a great article on how to sort it out. Note: Scroll down for .* version :)

Essentially, you are telling IIS that for every extension, it should look use the .NET DLL to run it, but don't check to see if the file exists first (because in MVC, the files don't exist).

Upvotes: 1

Related Questions