gpt4 book ai didi

.net - Windows Server 2008 R2上的WCF .NET 4.5

转载 作者:行者123 更新时间:2023-12-03 15:01:17 24 4
gpt4 key购买 nike

在Windows Server 2008 R2中,我无法从服务器管理器激活.net 4.5的WCF Http / Tcp激活窗口功能



即使可以在Windows Server 2008 R2的IIS中安装并使用.net 4.5,Windows Server 2008 R2中的服务器管理器也不支持.net 4.5。

我可以使用“打开/关闭Windows”功能在本地Windows 8中激活。 Windows Server 2008中相同的“打开/关闭Windows功能”窗口链接可带您进入服务器管理器



Powershell also does not list it on Server 2008。如何在Windows Server 2008中的.NET Framework 4.5 Advanced Services下为WCF服务安装HTTP激活和TCP激活?

最佳答案

P_G的评论是正确的。如果选中该选项,然后再安装.net45,它将安装这些功能。

我想为.net45打开它,主要是为了修复<system.serviceModel>部分未定义的错误,该错误在WCF激活服务未运行时发生。

我还注意到,当使用Set-WebConfigurationProperty时,powershell继续抛出上述错误,这是因为server 2008中的powershell试图从.net 2.0上下文(.net 3.5和3.0与.net共享配置文件位置)解析web.config。 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属性。

关于.net - Windows Server 2008 R2上的WCF .NET 4.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20784908/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com