Problem
client web.config is as follows
View Code
<binding name=“WSHttpBinding_IOMSService“ closeTimeout=“00:01:00“
openTimeout=“00:01:00“ receiveTimeout=“00:10:00“ sendTimeout=“00:01:00“
bypassProxyOnLocal=“false“ transactiOnFlow=“false“ hostNameComparisOnMode=“StrongWildcard“
maxBufferPoolSize=“20000000“ maxReceivedMessageSize=“20000000“ messageEncoding =“Text“
textEncoding=“utf- 8“ useDefaultWebProxy=“true“ allowCOOKIEs=“false“
<readerQuotas maxDepth=“32“ maxStringCOntentLength=“20000000“ maxArrayLength=“16384“
maxBytesPerRead=“4096“ maxNameTableCharCount=“16384“ />
<reliableSession ordered=“true“ inactivityTimeout=” 00:20:00“
enabled=“falsefalsefalse span>“ />
<security mode=“Message“>
<transport clientCredentialType =“Windows“ proxyCredentialType=“None“
realm=“” />
<message clientCredentialType=“Windows “ negotiateServiceCredential=“true“
algorithmSuite=“Default“ />
<endpoint address=“http://localhost:1888/OMSService“ binding=“ span>wsHttpBinding“
bindingConfiguration=“WSHttpBinding_IOMSService” cOntract=“Common.Service.IOMSService“
name=” WSHttpBinding_IOMSService“
server web.config
View Code
I didn’t report an error at the beginning of the visit, but after waiting for a few minutes to visit again, an error was reported. What is the reason?
<binding name=“WSHttpBinding_OMSService“ closeTimeout=“00:01:00“
openTimeout =“00:01:00“ receiveTimeout=“00:01:00“ sendTimeout=“00:01:00“
bypassProxyOnLocal =“false“ transactiOnFlow=“false“ hostNameComparisOnMode=“StrongWildcard“
maxBufferPoolSize=“20000000“ maxReceivedMessageSize=“20000000“
messageEncoding=“Text“ textEncoding=“ span>utf-8“ useDefaultWebProxy=“true“
<readerQuotas maxDepth=“32“ maxStringCOntentLength=“20000000”
maxArrayLength=“16384“ maxBytesPerRead=“ 4096“ maxNameTableCharCount=“16384“ />
<reliableSession ordered =“true“ inactivityTimeout=“00:20:00 “ />
<security mode=“Message“
<behavior name=“metadataBehavior“
<serviceMetadata httpGetEnabled=“true“ httpGetUrl=“ span>http://127.0.0.1:1888/OMSService/Metadata“ />
<serviceThrottling maxCOncurrentCalls=“ 1000“ maxCOncurrentInstances=“1000“ maxCOncurrentSessions=“1000“
<service name =“OMS.Server.Services.OMSService“ behaviorCOnfiguration=“metadataBehavior“
<endpoint bindingCOnfiguration=“WSHttpBinding_OMSService“ address=“http://127.0.0.1:1888/OMSService“ binding=“wsHttpBinding“ cOntract=“OMS.Server.Contracts.IOMSService“>
Best answer
What is the specific content of FaultException?
The security settings of the client and server must be consistent.
<reliableSession ordered=“true“ inactivityTimeout=“00: 20:00“
enabled=“false““ />
<security mode=“Message“
<transport clientCredentialType=“Windows“ proxyCredentialType=“None“
realm=“” />
<message clientCredentialType=“Windows“ negotiateServiceCredential=“true“
algorithmSuite=“Default“ />
Is it true that after closing the channel and accessing it again alright?