Windows 2008 R2 Server Core. NET Environment Configuration __.net

Source: Internet
Author: User

Some features of the. NET Framework are supported in 2008 R2 Server core, including a subset of. NET 2/3/3.5 and asp.net. In addition, PowerShell is also available on the Server Core. The missing feature of IIS7 on Server Core is only the local management GUI, which can be managed remotely.

The installed Server Core supports the following roles: the. NET Framework 2.0, 3.0, and 3.5 subsets, including WCF, WF, and LINQ PowerShell 2.0 support asp.net IIS 32 via WoW64 support 7.5-bit applications File Server Resource Manager (FSRM) Certificate Services

The above supported role features are ready on the installed Server Core server, and you can enable the appropriate components with the following command:

Dism/online/enable-feature/featurename:<component>

The names of the above components listed below, note that the names are case-sensitive, the. NET Framework 2.0, 3.0, and 3.5 subsets: Netfx3-servercore (requires first install netfx2-servercore) Windows Powershell:microsoftwindowspowershell File Server Resource Manager (FSRM): Fsrm-infrastructure-core Certificate Services: CertificateServices Support for ASP.net IIS 7.5:iis-ftpextensibility iis-aspnet iis-netfxextensibility wcf-http-activation IIS-WebDAV Iis-managementservice Iis-powershellprovider supports 32-bit applications via WoW64: Servercore-wow64 Additional WoW64 Support: Failovercluster-core-wow64 netfx2-servercore-wow64 microsoftwindowspowershell-wow64 (requires installation first NETFX2-SERVERCORE-WOW64) netfx3-servercore-wow64 printing-servercore-role-wow64 ServerCore-EA-IME-WOW64 Suacore-wow64

The application uses the following command to view the components that have been installed:

Oclist | More

Apply the following command to view the components that are enabled:

dism/online/get-features/format:table | find/i Enabled

Use the following command to clarify the configuration status of the ASP.net feature

Dism/online/get-featureinfo/featurename:iis-aspnet

After you've covered the relevant commands, let's complete the related configuration for asp.net enabled on the Windows Server 2008 R2. The Servercore of Windows Server 2008 R2 contains a subset of. netframework2.0/3.0/3.5, which allows Servercore to support almost all features of ASP.net, but there are some limitations to note: There is no built-in management console, Configuring and managing the Aps.net site in Servercore requires remote administration on the client computer where the IIS management console is installed, or by using the Appcmd tool in Servercore to make the IIS site and application more fully manageable with the command line console. The system webmail namespace is not available because Servercore does not contain CDOSYS components and therefore does not support systemwebmail namespaces, and Systemnetmail can achieve the same functionality. The server Core of Windows Serve 2008 R2 does not support Web utilities (WAT).

Before installing the Web Server role, IIS, and related dependencies, we must ensure that the. NET Framework is enabled and configured with the following two commands in DISM. NET Framework 2.0, 3.0, and 3.5 subsets:

Dism/online/enable-feature/featurename:netfx2-servercore

Dism/online/enable-feature/featurename:netfx3-servercore

To install IIS Web Server:

Dism/online/enable-feature/featurename:iis-webserverrole

Before installing ASP.net support for IIS, you must also restart Iis-isapifilter, iis-isapiextensions, iis-netfxextensibility:

Dism/online/enable-feature/featurename:iis-isapifilter

Dism/online/enable-feature/featurename:iis-isapiextensions

Dism/online/enable-feature/featurename:iis-netfxextensibility

You can now perform the following command to install ASP.net:

Dism/online/enable-feature/featurename:iis-aspnet

The Server Core server is now able to support asp.net applications, but now Servercore does not have a GUI-like IIS management Console in Windows 2008, when users need to create Web sites and Web applications, There are two ways to do this: the first is to use the Appcmd.exe command-line tool, which can be found in Windows system folders, or to turn on the IIS Management Service, which is created through the IIS management console of the IIS remote client.

Install the IIS Remote Administration service by executing the following command:

Dism/online/enable-feature/featurename:iis-managementservice

Need to install Was-windowsactivationservice and WAS-CONFIGURATIONAPI:

Dism/online/enable-feature/featurename:was-windowsactivationservice

Dism/online/enable-feature/featurename:was-configurationapi

After the installation is successful, you will also need to change some registry keys to activate the management service:

Reg Add hklm/software/microsoft/webmanagement/server/v enableremotemanagement/t reg_dword/d 1

The IIS Remote Administration service is already installed, but it is important to note that by default the service is in a stopped state, which is essential if the IIS Remote Administration service is required to be turned on and enabled through the Netstart command:

net start Wmsvc

Now we can manage the IIS servers on Server core via a remote computer and connect to the Server Core via a GUI Windows Server 2008 or Windows 7 IIS console:

Enter the server Core name or IP:

You then require that you enter credentials to connect to the server:

Then you need to enter an identity name, the recommended specification name, and a look at the IIS that is that server:

You can remotely administer your Server Core IIS service on IIS.

During this installation, the server supports only 64-bit applications, we also have a large number of 32-bit applications, enabling 32 for application support on Server Core is simple, 32 for application support is via WOW64, which can be installed with the following command:

Dism/online/enable-feature/featurename:servercore-wow64

If you still need to use 32-bit. NET assembly, perform the following command to install:

Dism/online/enable-feature/featurename:netfx2-servercore

Dism/online/enable-feature/featurename:netfx2-servercore-wow64

Finally, you need IIS to support 32-bit applications, and you need to enable 32 for application support on the IIS application pool.

If you use VC + + written assemblies in your application, you will also need to install Microsoft Visual C + + redistributable Package to refer to the visual Studio 64-bit application compilation.

Reference: Visual Studio 64-bit application compilation implement minimalist Solutions using Windows Server 2008 R2 Server Core How to get started W ITH C + + and. NET applications on Server Core you to get started with ASP.net applications on Server Core

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.