gideon
gideon

Reputation: 19465

asp.net mvc app in windows 2003 server extension less runs only home page

I've setup an asp.net mvc app on a windows server 2003 machine with IIS6. ASP.NET MVC3 and .NET4 framework has been installed.

Now, I setup a New Website, New AppPool for .NET4 and then put a virtual directory under there with my asp.net mvc3/razor app. So:

IIS
+NewSite <<I set home directory to MyApp
++MyApp/ <<virtual dir

Here is the annoying bit, when I navigate to the address http://<MyServerIp>/ the home page for my app loads up. But, all other links/urls fail and give me a 404.

Like if I click Log On. The URL <myServerIp>/Account/LogOn gives a 404. Similarly all other urls other than the home page give me a 404.

I've gone through as many related questions on SO. I've gone through Phil Haacks article. I've setup a wildcard mapping for .net4.

Any ideas?

Upvotes: 0

Views: 831

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038850

Make sure that .NET 4.0 is enabled in the web service extensions folder in IIS manager console:

enter image description here

Also make sure that ASP.NET is properly registered with IIS:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

Upvotes: 2

Related Questions