此前,我最近将我的世界森林论坛客户和世界森林基金会的服务从www.Net3.5升至4.0。 在升级后,我开始使用KerberosOverTransport时出现以下错误:
An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
在此,我的客户一方
<binding name="StreamingBinding_Kerberos">
<gzipMessageEncoding innerMessageEncoding="textMessageEncoding"
maxArrayLength="2147483647" />
<security authenticationMode="KerberosOverTransport"/>
<httpsTransport transferMode="StreamedResponse"
maxReceivedMessageSize="536870912"
authenticationScheme="Anonymous" />
</binding>
Here s the endpoint I am using: I am returning a Stream from TestService method. All this was working fine with .Net 3.5 but as soon as we upgraded to .Net 4.0 all this stopped working. We have another binding using UsernameOverTransport which works without any issues even after.Net 4.0 upgrade.
<binding name="StreamingBinding_Username">
<gzipMessageEncoding innerMessageEncoding="textMessageEncoding"
maxArrayLength="2147483647" />
<security authenticationMode="UserNameOverTransport"/>
<httpsTransport transferMode="StreamedResponse"
maxReceivedMessageSize="536870912"
authenticationScheme="Anonymous" />
</binding>
请帮助!