如何解决不允许使用 webconfig 中的可靠消息版本
我们有以下 web.config 。我们希望在我们的服务上启用reliableSessions 1.0。我们使用这种旧技术的原因是我们想为需要集成的旧平台创建一个模拟服务。除了我们无法设置属性reliableMessagingVersion 之外,这几乎可以正常工作。根据{{3}},它应该在reliableSession 属性上可用。但是,我们 2019 版的 Visual Studio 抱怨该属性。如果删除以及何时删除,我找不到任何信息。如果有人可以提供帮助,那就太好了。
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2"/>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="VGBinding">
<security mode="None" />
<reliableSession
reliableMessagingVersion="WSReliableMessagingFebruary2005"
enabled="true"
ordered="true"
inactivityTimeout="00:03:00" />
</binding>
</wsHttpBinding>
</bindings>
<protocolMapping>
<add binding="wsHttpBinding" bindingConfiguration="VGBinding" scheme="http" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<httpErrors errorMode="Detailed" />
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="false"/>
</system.webServer>
</configuration>
工作室报告的错误是“不允许使用reliableMessagingVersion属性。”
提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。