[英]How to install .NET 4.5 silently on Windows Server 2008 R2 using powershell Script.?
[英]WCF .NET 4.5 on Windows Server 2008 R2
在Windows Server 2008 R2中,我無法從服務器管理器激活.net 4.5的WCF Http / Tcp激活窗口功能
Windows Server 2008 R2中的服務器管理器不支持.net 4.5,即使.net 4.5可以在Windows Server 2008 R2的IIS中安裝和使用。
我可以使用Turn Windows功能開/關窗口在我的本地Windows 8中激活。 Windows Server 2008中相同的Turn Windows功能開/關窗口鏈接將您帶到服務器管理器
Powershell也沒有在Server 2008上列出它 。 如何在Windows Server 2008中的.NET Framework 4.5高級服務下為WCF服務安裝HTTP激活和TCP激活?
P_G的評論是正確的。 如果選中此選項並稍后安裝.net45,則會安裝這些功能。
我想為.net45打開它主要是為了修復<system.serviceModel>
部分未定義錯誤,如果WCF激活服務沒有運行則會發生錯誤。
我還注意到,當使用Set-WebConfigurationProperty
時,powershell繼續拋出上述錯誤這是因為服務器2008中的powershell嘗試從.net 2.0上下文解析web.config(.net 3.5和3.0共享配置文件位置.net 2.0 - c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config
)並失敗 - 因為在那個位置system.serviceModel沒有在那里定義。
然而,應用程序工作正常,因為IIS網站使用( c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\config\\machine.config
),它被定義在那里。
選中該復選框也會定義c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config
中的部分 - 所以powershell現在也可以解析web.config和set-iis屬性。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.