简体   繁体   English

单声道WCF webHttpBinding崩溃

[英]Mono WCF webHttpBinding crashes

Currently I'm testing a Mono WCF Host, it can receive json post. 目前,我正在测试Mono WCF主机,它可以接收json帖子。 I find on Mono3.2, if send it a header(via Fiddler) without "Content-Type", something like this, it crashes immediately. 我在Mono3.2上发现,如果向其发送标头(通过Fiddler)而没有“ Content-Type”,则类似这样,它将立即崩溃。

User-Agent: Fiddler
Host: myIP:myPort
Content-Length: 1

Exception is below. 例外情况如下。

  Missing method Mono.Security.Protocol.Tls.SslServerStream::.ctor(Stream,X509Certificate,bool,bool,bool) in assembly G:\share\DaGeneral\Overseer CLI HOST\bin\Debug\Mono.Security.dll, referenced in assembly F:\Mono-3.2.3\lib\mono\gac\System\4.0.0.0__b77a5c561934e089\System.dll

Unhandled Exception:
System.MissingMethodException: Method not found: 'Mono.Security.Protocol.Tls.SslServerStream..ctor'.

  at System.Net.EndPointListener.OnAccept (System.Object sender, System.EventArgs e) [0x00099] in C:\cygwin\sources\mono\mcs\class\System\System.Net\EndPointListener.cs:128 

  at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted (System.Net.Sockets.SocketAsyncEventArgs e) [0x00014] in C:\cygwin\sources\mono\mcs\class\System\System.Net.Sockets\SocketAsyncEventArgs.cs:177 

  at System.Net.Sockets.SocketAsyncEventArgs.AcceptCallback (IAsyncResult ares) [0x00077] in C:\cygwin\sources\mono\mcs\class\System\System.Net.Sockets\SocketAsyncEventArgs.cs:290 

  at System.Net.Sockets.SocketAsyncEventArgs.DispatcherCB (IAsyncResult ares) [0x00084] in C:\cygwin\sources\mono\mcs\class\System\System.Net.Sockets\SocketAsyncEventArgs.cs:230 

No doubt it could be a huge hidden danger if a programme shut down like this. 毫无疑问,如果这样关闭程序,可能会带来巨大的隐患。 Any help? 有什么帮助吗? Cheers. 干杯。

The answer is that the file "Mono.Security.Dll" is a wrong compiled version. 答案是文件“ Mono.Security.Dll”是错​​误的编译版本。 Download a mono version of it can fix this problem. 下载单声道版本可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM