我正在尝试使用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已安装在我的系统上。

我的应用程序在Visual Studio中运行正确,但我无法部署它以挽救我的生活。我完全陷入困境的地方。我也尝试过这个网站的集成和经典管道模式。

有帮助吗?

解决方案

我有同样的问题。到目前为止,我只发现了这个论坛线程其中一个答案所说的通过Web平台安装程序安装解决问题,虽然这对我不起作用。已安装IIS ASP.NET 4.5功能。

更新: 我最后工作了。

按照此问题的说明,以启用IIS中的WCF服务: 在IIS8上的WCF;* .svc处理程序映射不起作用

这里也是有关如何获取处理程序映射

其他提示

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

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

试试这个链接.. 这将有助于您在IIS 8中注册ASP.NET 4.5 ... http://support.microsoft.com/kb/2736284

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

从那时起,它都再次工作。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top