Vb.net WCF绑定设置-maxRetryCount=";整数;
我试图设置绑定设置maxRetryCount=“Integer”,但它表示“maxRetryCount属性是不允许的” 我看到它在许多例子中被引用/使用 我做错了什么 要设置此属性(设置)以查看它是否停止我收到的错误:已超过最大重试次数,远程端点没有响应。可靠会话出现故障。这通常表示远程端点不再可用Vb.net WCF绑定设置-maxRetryCount=";整数;,vb.net,wcf,Vb.net,Wcf,我试图设置绑定设置maxRetryCount=“Integer”,但它表示“maxRetryCount属性是不允许的” 我看到它在许多例子中被引用/使用 我做错了什么 要设置此属性(设置)以查看它是否停止我收到的错误:已超过最大重试次数,远程端点没有响应。可靠会话出现故障。这通常表示远程端点不再可用 <?xml version="1.0"?> <configuration> <appSettings> <add key="aspn
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
<customErrors mode="Off"/>
</system.web>
<system.serviceModel>
<services>
<service name="dedicated_servers.dedicated_servers.DedicatedServerApi">
<endpoint address="User" binding="wsHttpBinding" contract="dedicated_servers.dedicated_servers.IDedicatedServerApiUser" bindingConfiguration="NoSecurityConfig">
</endpoint>
<endpoint address="Server" binding="wsHttpBinding" contract="dedicated_servers.dedicated_servers.IDedicatedServerApiServer" bindingConfiguration="NoSecurityConfig">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="NoSecurityConfig" openTimeout="00:05:00" closeTimeout="00:05:00" sendTimeout="00:05:00"
receiveTimeout="00:05:00">
<security mode="None">
<transport clientCredentialType="None" />
<message establishSecurityContext="false" />
</security>
<reliableSession enabled="true" inactivityTimeout="00:10:00" maxRetryCount="8" />
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
请参见此。换言之,您不能在
wsHttpBinding
上设置maxRetryCount
,但您可以使用一些自定义绑定技巧使其正常工作。谢谢……我尝试了,但仍然收到了消息。这似乎是一个数量问题。通过将低容量传回客户端,它可以正常工作—即使在添加maxRetryCount之前,现在也在添加maxRetryCount之后。有了大票,我就得到了这个信息。