3
votes

I have just installed a ASP.Net Mvc application on a windows server 2008.

When I try to use the application I see that IIS 7 tries to use the static file handler, I therefore get a 403 or 404 error.

How do I get it to use the MVC handler?

EDIT

Have also tried asking this question on serverfault. It has a bounty here

3

3 Answers

3
votes

In Server Manager, select Web Server (IIS) and press 'Add Role Services'. From here, select 'ASP.NET' and press OK to add the other required role services.

2
votes

I was experiencing the same issue. The solution in my case was to run aspnet_regiis.exe -i.

0
votes

In IIS go to your ApplicationPool Right Click > Advanced Settings > Select "Integrated" for Managed Pipeline Mode