如何在IIS 8中重新注册ASP.NET? [英] How do I re-register ASP.NET with IIS 8?
问题描述
我正在Azure上运行画廊模板Windows Server 2012 VM实例.我已经在本地IIS 8.0上部署了一个.NET站点,但是它不起作用,只是给出了404的for路径,该路径在dev box(IIS Express)上可以正常工作.
I am running a gallery template Windows Server 2012 VM instance on Azure. I've deployed a .NET site to the local IIS 8.0 but it doesn't work, just gives 404's for path that work fine on dev box (IIS Express).
我已经在此VM上进行了Web Deploy的噩梦,所以我认为整个VM模板很麻烦.
I had a nightmare with Web Deploy already on this VM so I think this whole VM template is screwy.
我想使用aspnet_regiis.exe
向IIS重新注册ASP.NET,但看到此消息:
I want to re-register ASP.NET with IIS using aspnet_regiis.exe
but I see this message:
此版本的操作系统不支持此选项.管理员应该使用打开/关闭Windows功能"对话框,服务器管理器管理工具或dism.exe命令行工具,将IIS8与ASP.NET 4.5一起安装/卸载.有关更多详细信息,请参见 http://go.microsoft.com/fwlink/?LinkID=216771 .
该链接转到说明如何添加角色的页面.我不知道如何删除角色.
The link goes to a page explaining how to add roles. I haven't the faintest idea how to remove roles.
有一篇TechNet文章介绍如何通过PowerShell进行操作,并且几乎有一个脚注,可以使用删除角色向导"通过GUI进行删除-在Server 2012上找不到.
There is a TechNet article about doing it via PowerShell and has almost a footnote for removing via a GUI, using "The Remove Roles Wizard" - which is nowhere to be found on Server 2012.
这些天如何删除IIS或ASP.NET或.NET Framework并重新安装?真是令人困惑.
How can I remove IIS or ASP.NET or .NET Framework and reinstall it these days? It's so confusing.
实际上,这似乎是不可能的,我想知道这是否不是对Azure上的VM模板的某些自定义;无法删除任何内容.
In fact, its seem SO impossible, that I'm wondering whether this isn't some customization of the VM template on Azure; there's no way to remove anything.
推荐答案
I want to re-register ASP.NET with IIS using aspnet_regiis.exe
根本不能,您需要在Windows 2012中打开/关闭功能
simply you can't, you'll need to turn on / off features in windows 2012
- 转到控制面板,
- 单击程序",然后单击打开或关闭Windows功能".
- 在"Windows功能"对话框中,单击"Internet信息服务" 安装默认功能.
- 扩展应用程序开发
-
功能"节点,然后单击"ASP.NET 4.5"以添加支持的功能 ASP.NET. (如果安装了.NET 3.5,则还选择ASP.NET 3.5.) 自动选择以下附加功能:.NET 扩展性4.5
- Go to Control Panel,
- Click Programs, and then click Turn Windows features on or off.
- In the Windows Features dialog box, click Internet Information Services to install the default features.
- Expand the Application Development
Features node and click ASP.NET 4.5 to add the features that support ASP.NET. (If you installed .NET 3.5, select ASP.NET 3.5 also.) The following additional features are automatically selected: .NET Extensibility 4.5
- ISAPI扩展
- ISAPI过滤器
- .NET可扩展性3.5(如果选择了ASP.NET 3.5)
有关命令行,请查看本文,并查看如果可行的话.
for the command line take a look at this article and see if that works.
这篇关于如何在IIS 8中重新注册ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!