PrepAway - Latest Free Exam Questions & Answers

You need to install the ASP.NET feature on the server

Your network contains a Web server that runs a Server Core installation of Windows Server 2008 R2.
You need to install the ASP.NET feature on the server. What should you run?

PrepAway - Latest Free Exam Questions & Answers

A.
appcmd.exe

B.
dism.exe

C.
sconfig.cmd

D.
slmgr.vbs

Explanation:
Enable ASP.NET on Windows Server 2008 R2 Windows Server 2008 R2 Server Core includes subsets
of the 2.0/3.0/3.5 .NET Framework. The Framework makes it possible to run an almost full-featured
version of ASP.NET. However, there are 3 limitations that you should take into consideration when
working with ASP.NET on Server Core:
No MMC Snap-in. To configure, host, and manage Server Core hosted ASP.NET websites, you must
do so via a remote connection from an IIS Management Console (i.e. MMC snap- in) running on a
client computer. You can also manage practically every aspect of IIS sites and applications via a local
administrative command console using the command line utility APPCMD. No System.Web.Mail

Namespace. The namespace System.Web.Mail is not supported because CDOSYS is not present on
Server Core. The System.Web.Mail namespace was deprecated some time ago, so chances are that
your code is no longer using them anyway. Use System.Net.Mail instead as it offers the same
functionality. The Web Application Tool (WAT) is not available on Windows Server 2008 R2 Core.
Before installing the Web Server Role, IIS and dependencies, we must make sure that the .NET
Framework is installed. To install the 2.0 and 3.0 .NET Framework, use the Deployment Image
Servicing and Management (DISM) utility using the following parameters:
dism /online /enable-feature /featurename:NetFx2-ServerCore dism /online /enable-feature
/featurename:NetFx3-ServerCore The optional server role that must be configured to enable
ASP.NET on IIS 7 is called IIS- ASPNET. This role has various pre-requisites that must first be installed.
The first one is the Web Server Role, which can be enabled via following command:
dism /online /enable-feature /featurename:IIS-WebServerRole Once you have enabled the IISWebServerRole, three additional roles must be installed prior to the installation of the IIS-ASPNET
role:
IIS-ISAPIFilter
IIS-ISAPIExtensions
IIS-NetFxExtensibility
These roles are installed by issuing the following commands (in corresponding order):
dism /online /enable-feature /featurename:IIS-ISAPIFilter
dism /online /enable-feature /featurename:IIS-ISAPIExtensions dism /online /enable-feature
/featurename:IIS-NetFxExtensibility
Now, install the IIS-ASPNET optional feature using the following command:
dism /online /enable-feature /featurename:IIS-ASPNET Source:
http://code.msdn.microsoft.com/R2CoreASPNET


Leave a Reply