1

2 台のマシンがあり、それぞれが異なるバージョンの mono を実行しています。

マシン 1: Mono JIT コンパイラ バージョン 2.10.5 (Debian 2.10.5-1ubuntu0.1) マシン 2: Mono JIT コンパイラ バージョン 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)

ServicePointManager.ServerCertificateValidationCallback = Validator;を使用してすべての証明書を許可することにしましたValidator

public bool Validator (object sender, X509Certificate certificate, X509Chain chain,     SslPolicyErrors sslPolicyErrors)
{
    return true;
}

マシン 1 は正常に動作し、証明書を受け入れます

ただし、マシン 2 は大きなエラーをスローしています。証明書の問題である可能性があります。

何か案は?

大きなエラー:

Unhandled Exception: System.Net.WebException: Error getting response
stream (ReadDone1): ReceiveFailure ---> System.IO.IOException: EndRead
failure ---> System.Net.Sockets.SocketException: Connection reset by
peer   at System.Net.Sockets.Socket.EndReceive (IAsyncResult result)
[0x00000] in <filename unknown>:0    at
System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000]
in <filename unknown>:0    --- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar)
[0x00000] in <filename unknown>:0    at
Mono.Security.Protocol.Tls.SslStreamBase.InternalReadCallback
(IAsyncResult result) [0x00000] in <filename unknown>:0    --- End of
inner exception stack trace ---   at
System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x00000] in <filename unknown>:0    at
System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename
unknown>:0    at CRMOnlineSOAPRequests.CRMHelper.GetSOAPResponse
(System.String url, System.String soapEnvelope) [0x00000] in <filename
unknown>:0    at CRMOnlineSOAPRequests.CRMHelper.createEntity
(System.String[] keyValuesOneDimensionalArray) [0x00000] in <filename
unknown>:0    at CRMCreateEntity.Program.Main (System.String[]
keyValuesOneDimensionalArray) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.WebException: Error
getting response stream (ReadDone1): ReceiveFailure --->
System.IO.IOException: EndRead failure --->
System.Net.Sockets.SocketException: Connection reset by peer   at
System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000]
in <filename unknown>:0    at System.Net.Sockets.NetworkStream.EndRead
(IAsyncResult ar) [0x00000] in <filename unknown>:0    --- End of
inner exception stack trace ---   at
System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000]
in <filename unknown>:0    at
Mono.Security.Protocol.Tls.SslStreamBase.InternalReadCallback
(IAsyncResult result) [0x00000] in <filename unknown>:0    --- End of
inner exception stack trace ---   at
System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x00000] in <filename unknown>:0    at
System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename
unknown>:0    at CRMOnlineSOAPRequests.CRMHelper.GetSOAPResponse
(System.String url, System.String soapEnvelope) [0x00000] in <filename
unknown>:0    at CRMOnlineSOAPRequests.CRMHelper.createEntity
(System.String[] keyValuesOneDimensionalArray) [0x00000] in <filename
unknown>:0    at CRMCreateEntity.Program.Main (System.String[]
keyValuesOneDimensionalArray) [0x00000] in <filename unknown>:0
4

0 に答える 0