Problem deploying an MVC web application

S

Siggy

Hi I am struggling with a VERY basic problem...

I am using VS2008 and creating a default MVC Web Application.

I then add one additional view "Index01" with the corresponding controller.

I run the app using the F5 key and all three views display correctly ie
Index, Index01 and About (Home is equivalent to Index).

However when I deploy to my local C:\Inetpub\wwwroot\TestMVC then only the
default Index page is displayed the rest give an error "The page cannot be
found" HTTP 404 - File not found error.

Now I am not applying any security, I am allowing anonymous and surely the
Index page has the same security settings at the other 2 pages.

I have tried using the "Publish Web" function as well as creating and using
an "Setup and Install" project.

Help more from not pulling out my last hair please!
 
S

Siggy

OK, here is the solutions for those who are also banging their heads against
this one.

I am working on Windows XP Professional and IIS 5 this means that the
default routing needs a helping hand.

Steps that need to be taken are:

1 Configure the application to use file extensions (.aspx or .mvc) and
define the appropriate Application Mapping (see my reference further down) or
define a wildcard Application Mapping.

2 Modify the Global.asax.vb to include a route for the "Root" folder.

The article that I found usefull is
"http://www.asp.net/learn/mvc/tutorial-08-vb.aspx"

Siggy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top