Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net mvc 4 on iis6: "The page cannot be found"

I am having trouble getting ASP.Net MVC 4 running on IIS 6.

First, i got "Directory listing denied" and that already solved after I setup extensionless urls based on Phil Haack's blog post: ASP.NET MVC on IIS 6 Walkthrough.

Now, I'm getting "The page cannot be found" 404 page.

It's a simple ASP.Net Web Api project in MVC 4 beta.

like image 441
Anwar Chandra Avatar asked Mar 23 '12 23:03

Anwar Chandra


2 Answers

Under application configuration, I insert wildcard extension mapping to:

c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll

But I forgot to un-check on Verify that file exists checkbox.

like image 130
Anwar Chandra Avatar answered Oct 20 '22 15:10

Anwar Chandra


I fixed this problem using these steps:

  1. Open IIS Console
  2. Select “Web Service Extensions
  3. Select “ASP.NET v4.0.30319”
  4. Click Allow
like image 23
Igor Krupitsky Avatar answered Oct 20 '22 13:10

Igor Krupitsky