Asp.net mvc 4 aspnet_regiis.exe-ir在windows 8上不工作

Asp.net mvc 4 aspnet_regiis.exe-ir在windows 8上不工作,asp.net-mvc-4,iis-8,Asp.net Mvc 4,Iis 8,我正在尝试使用IIS8将ASP.NET MVC3应用程序部署到我的Windows 8机箱。当我尝试路由到站点时,会出现以下错误: 在这个问题上,我能找到的几乎所有东西都说要运行: aspnet_regiis.exe -ir 当我在Windows 8设备上运行此操作时,会收到以下消息: Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\Justi

我正在尝试使用IIS8将ASP.NET MVC3应用程序部署到我的Windows 8机箱。当我尝试路由到站点时,会出现以下错误:

在这个问题上,我能找到的几乎所有东西都说要运行:

aspnet_regiis.exe -ir
当我在Windows 8设备上运行此操作时,会收到以下消息:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\Justin>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
-ir
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web 
applications to use this version of ASP.Net.  This option is not supported on 
this version of the operating system.  Administrators should instead install / 
uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, 
the Server Manager management tool, or the dism.exe command line tool.  For more 
details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929) without changing existing web 
applications to use this version of ASP.Net.
我的系统上已经安装了ASP.NET 4.5


我的应用程序在VisualStudio中正确运行,但我无法部署它来拯救我的生命。我完全不知道今后该怎么办。我也尝试过这个站点的集成和经典管道模式。

我也遇到了同样的问题。到目前为止,我只发现了这个问题,其中一个答案是通过Web平台安装程序安装解决了这个问题,尽管这对我来说不起作用。IIS ASP.NET 4.5功能已禁用,因为它已安装

更新: 我终于成功了

按照此问题中的说明在IIS中启用wcf服务:

这里还有一些关于

对我有用的信息: -取消选中删除/添加windows功能中的4.5和3.5 -重新启动计算机 -选中了“删除/添加windows功能”中的4.5和3.5


从那时起,一切又恢复了正常。

运行以下命令,将在IIS中安装并注册ASP.NET 4.5:

dism /online /enable-feature /featurename:IIS-ASPNET45 /all

我从VS命令提示符(在管理模式下)运行此命令,问题得到解决:)Thx.部署映像服务和管理工具版本:6.3.9600.17031映像版本:6.3.9600.17031启用功能[=============================================================================================================================================================================================================================================================================================================================================操作已成功完成。我在命令提示符下运行了此命令(在管理模式下),并且在安装Visual Studio和ASPNet后,它在Windows 8.1上运行,IIS 8.5在Windows 10上安装了IIS 8。Web应用程序无法运行。在管理员命令提示符下运行此命令,并将其清理干净。很好,谢谢。为什么微软不把它放在aspnet_regis的输出消息中,而不是放在一些很快就会过时的支持文章的链接中?