簡體   English   中英

單聲道WCF webHttpBinding崩潰

[英]Mono WCF webHttpBinding crashes

目前,我正在測試Mono WCF主機,它可以接收json帖子。 我在Mono3.2上發現,如果向其發送標頭(通過Fiddler)而沒有“ Content-Type”,則類似這樣,它將立即崩潰。

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 

毫無疑問,如果這樣關閉程序,可能會帶來巨大的隱患。 有什么幫助嗎? 干杯。

答案是文件“ Mono.Security.Dll”是錯​​誤的編譯版本。 下載單聲道版本可以解決此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM