开发者

ASP.Net MVC Application on Windows Server 2008 uses static file handler

开发者 https://www.devze.com 2022-12-16 18:23 出处:网络
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 theref开发者_运维百科ore get a 403

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 theref开发者_运维百科ore 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


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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消