Handler "BlockViewHandler" has a bad module "ManagedPipelineHandler" in its module list

时间:2024-01-18 14:01:32

当你的ASP.NET MVC项跑在IIS时,出现如标题Handler "BlockViewHandler" has a bad module "ManagedPipelineHandler" in its module list异常时,可以尝试下面的解决方法,
重新为IIS注册Framework。

64位操作系统:

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

32位操作系统:

%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i