WCF.NET 4.5 on Windows Server 2008 R2

In Windows Server 2008 R2, I cannot activate the WCF Http / Tcp activation window features for .net 4.5 from Server Manager

enter image description here

Server Manager in Windows Server 2008 R2 does not support .net 4.5, although .net 4.5 can be installed and used in IIS in Windows Server 2008 R2.

I can activate my local Windows 8 using the Turn Window on / off window. In the same line of the "Turn Windows On / Off" window of the Windows Server 2008 window, you will be taken to Server Manager

enter image description here

Powershell also does not list it on server 2008 . How to set up HTTP and TCP activation for WCF services in .NET Framework 4.5 Additional Services in Windows Server 2008?

+16
windows-server-2008 windows-server-2008-r2 wcf
Dec 26 '13 at 12:32
source share
1 answer

P_G comment is correct. If this check box is selected and .net45 is later installed, it installs these functions.

I wanted to enable it for .net45, first of all, to fix the <system.serviceModel> error, which is not defined, which occurs if WCF activation services are not running.

I also noticed that powershell continues to raise the above error when using Set-WebConfigurationProperty This is because powershell in server 2008 tries to parse web.config from the context of .net 2.0 (.net 3.5 and 3.0. With .net 2.0 - c:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config ) and crash - because at this point the system.serviceModel is not defined there.

However, the application works just fine because the IIS website uses ( c:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config ) and it is defined there.

Checking that the checkbox also defines the section in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config - so that PowerShell can now also analyze the properties of web.config and set-iis.

+7
Jan 04 '14 at 9:47
source share



All Articles