【发布时间】:2014-03-10 06:21:06
【问题描述】:
目前我正在测试一个 Mono WCF 主机,它可以接收 json 帖子。我在 Mono3.2 上找到,如果向它发送一个没有“Content-Type”的标题(通过 Fiddler),像这样,它会立即崩溃。
User-Agent: Fiddler
Host: myIP:myPort
Content-Length: 1
例外如下。
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
如果一个程序这样关闭,无疑会是一个巨大的隐患。 有什么帮助吗?干杯。
【问题讨论】:
标签: c# wcf mono webhttpbinding