在Windows Server 2012上注册ASP.NET 4.5的替代方法 [英] Alternative for the Registering ASP.NET 4.5 on Windows Server 2012

查看:593
本文介绍了在Windows Server 2012上注册ASP.NET 4.5的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行WCF服务时,我收到MIME未注册错误.我使用此链接解决了此问题.之后,我开始收到另一个错误,要求我向IIS注册ASP.NET框架.因此,我使用了"aspnet_regiis" 命令,但它显示了以下错误.

I am getting MIME is not registered error when I run WCF service. I used this link to resolve this issue. After that I started getting another error which asked me to register the ASP.NET framework with IIS. So I used "aspnet_regiis" command for it but it shows me following error.

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).
This option is not supported on this version of the operating system.  Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog,  the Server Manager management tool, or the dism.e
xe command line tool.  For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929).

我尝试从服务器安装/卸载ASP.Net 4.5.但是这样做之后,我的服务器没有再次启动,并且始终显示黑屏.因此,我必须再次安装WS 2012.有人可以解释一下如何在WS 2012上再次向IIS注册ASP.NET吗?

I tried to install/uninstall ASP.Net 4.5 from the server. But after doing that, my server was not started again and it always show the black screen. So I have to install the WS 2012 again. Can somebody explain me how to register ASP.NET with IIS again on WS 2012?

推荐答案

我们必须卸载服务器角色而非功能下的4.5.我还附有屏幕供参考.

we have to uninstall the 4.5 which comes under the Server roles not features. I am also attaching screen for the reference.

为此,打开服务器管理器->仪表板-> 2)角色和功能,然后按照屏幕快照中提到的以下步骤进行操作.

For this open the Server manager -> Dashboard -> 2) Roles and Features and follow the following steps which are mentioned in screenshots.

注意:我正在向您展示如何添加角色和功能向导(安装新功能/角色),但是如果要卸载/删除(卸载新功能/角色),则必须单击开始删除角色和功能向导".请确保首先安装IIS,然后安装.NET Framework.

选择服务器

您必须检查ASP.NET 3.5和ASP.NET 4.5(根据需要)选项,才能向IIS注册.NET框架.

You have to check ASP.NET 3.5 and ASP.NET 4.5 (based on requirement) options for register the .NET framework with IIS.

要安装任何功能部件/角色,我们必须检查要安装的选项.要卸载任何功能/角色,您必须取消选中它.

To install any features/roles, we have to check that option which we want to install. For uninstall any features/roles you have to uncheck it.

请在下面找到参考链接.

Please find the reference links below.

http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45

http://www.iis.net/learn/get-started/whats-new-in-iis-8/installing-iis-8-on-windows-server-2012

这篇关于在Windows Server 2012上注册ASP.NET 4.5的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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