Mono WCF webHttpBinding crashes



目前我正在测试一个单声道WCF主机,它可以接收json帖子。我在 Mono3.2 上发现,如果向它发送一个没有"内容类型"的标头(通过 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:shareDaGeneralOverseer CLI HOSTbinDebugMono.Security.dll, referenced in assembly F:Mono-3.2.3libmonogacSystem4.0.0.0__b77a5c561934e089System.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:cygwinsourcesmonomcsclassSystemSystem.NetEndPointListener.cs:128 
  at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted (System.Net.Sockets.SocketAsyncEventArgs e) [0x00014] in C:cygwinsourcesmonomcsclassSystemSystem.Net.SocketsSocketAsyncEventArgs.cs:177 
  at System.Net.Sockets.SocketAsyncEventArgs.AcceptCallback (IAsyncResult ares) [0x00077] in C:cygwinsourcesmonomcsclassSystemSystem.Net.SocketsSocketAsyncEventArgs.cs:290 
  at System.Net.Sockets.SocketAsyncEventArgs.DispatcherCB (IAsyncResult ares) [0x00084] in C:cygwinsourcesmonomcsclassSystemSystem.Net.SocketsSocketAsyncEventArgs.cs:230 

毫无疑问,如果一个程序像这样关闭,这可能是一个巨大的隐患。有什么帮助吗?干杯。

答案是文件"Mono.Security.Dll"是一个错误的编译版本。下载它的单声道版本可以解决此问题。

相关内容

  • 没有找到相关文章

最新更新