【问题标题】:Mono WCF webHttpBinding crashesMono WCF webHttpBinding 崩溃
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-07-14
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      • 2010-12-03
      • 2011-07-20
      • 1970-01-01
      相关资源
      最近更新 更多