1024programmer News wcfwsHttpBinding received an error from another party that did not secure or incorrectly secure??

wcfwsHttpBinding received an error from another party that did not secure or incorrectly secure??

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?

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/wcfwshttpbinding-received-an-error-from-another-party-that-did-not-secure-or-incorrectly-secure/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索