aspnet_regiis.exe -ir 在 Windows 8 上不起作用 [英] aspnet_regiis.exe -ir does not work on windows 8

查看:14
本文介绍了aspnet_regiis.exe -ir 在 Windows 8 上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to deploy an ASP.NET MVC3 app to my Windows 8 box with IIS8. When I try to route to the site I get the following error:

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

Pretty much everything I can find on this issue says to run:

aspnet_regiis.exe -ir

当我在 Windows 8 机器上运行它时,我收到以下消息:

When I run this on my Windows 8 box, I get the following message:

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

C:UsersJustin>C:WindowsMicrosoft.NETFrameworkv4.0.30319aspnet_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 已经安装在我的系统上.

ASP.NET 4.5 is already installed on my system.

我的应用程序在 Visual Studio 中正常运行,但我无法部署它来挽救我的生命.我完全不知道从这里去哪里.我也为该站点尝试了集成和经典管道模式.

My application runs correctly in Visual Studio, but I can not deploy it to save my life. I am completely at a loss on where to go from here. I have tried both integrated and classic pipeline modes for this site as well.

推荐答案

我遇到了同样的问题.到目前为止,我只找到了这个 论坛主题,其中一个答案指出通过 Web Platform Installer 安装解决了这个问题,尽管这对我不起作用.IIS ASP.NET 4.5 功能已被禁用,因为它已安装.

I'm having the same problem. So far I only found this forum thread of which one of the answers states that installing via Web Platform Installer solved the problem, though this doesn't work for me. The IIS ASP.NET 4.5 feature is disabled as it is already installed.

更新:我终于让它工作了.

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

Follow the instructions from this SO question to enable the wcf service in IIS: WCF on IIS8; *.svc handler mapping doesn't work

这里还有一些关于如何安装处理程序映射

这篇关于aspnet_regiis.exe -ir 在 Windows 8 上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆