gpt4 book ai didi

asp.net-mvc-4 - aspnet_regiis.exe -ir 不适用于 Windows 8

转载 作者:行者123 更新时间:2023-12-03 00:18:05 25 4
gpt4 key购买 nike

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

HTTP Error 403.14 - Forbidden

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

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 已安装在我的系统上。

Windows Features

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

最佳答案

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

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

关于asp.net-mvc-4 - aspnet_regiis.exe -ir 不适用于 Windows 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12676002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com