I have a simple WCF Service that uses nettcp bindings, and is self hosted by a console app. I am using App.config for the service parameters. I am creating a proxy in a client using duplexchannelfactory, not using App.config.
I am testing in Windows 7. When I run the service in mono and the client in mono the call works. When I run the service in .NET and the client in .NET the call works. When I run the service in mono and the client in mono the call fails. When I run the service in .NET and the client in .NET the call fails. I would like to run the service under mono, and service both mono and .NET clients. Thoughts? Patrick [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Read failure ---> Syst em.Net.Sockets.SocketException: An existing connection was forcibly closed by th e remote host. at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int3 2 size, SocketFlags flags) [0x00000] in <filename unknown>:0 at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 at System.IO.Stream.ReadByte () [0x00000] in <filename unknown>:0 at System.ServiceModel.Channels.NetTcp.TcpBinaryFrameManager.ProcessPreambleAc kInitiator () [0x00000] in <filename unknown>:0 at System.ServiceModel.Channels.NetTcp.TcpDuplexSessionChannel.OnOpen (TimeSpa n timeout) [0x00000] in <filename unknown>:0 at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) [0 x00000] in <filename unknown>:0 at System.ServiceModel.MonoInternal.ClientRuntimeChannel.OnOpen (TimeSpan time out) [0x00000] in <filename unknown>:0 at System.ServiceModel.MonoInternal.DuplexClientRuntimeChannel.OnOpen (TimeSpa n timeout) [0x00000] in <filename unknown>:0 at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) [0 x00000] in <filename unknown>:0 at System.ServiceModel.Channels.CommunicationObject.Open () [0x00000] in <file name unknown>:0 at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Ref lection.MethodBase method, System.String operationName, System.Object[] paramete rs) [0x00000] in <filename unknown>:0 at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Refle ction.MethodBase method, System.String operationName, System.Object[] parameters ) [0x00000] in <filename unknown>:0 -- View this message in context: http://mono.1490590.n4.nabble.com/WCF-Service-running-in-Mono-tp4649546.html Sent from the Mono - Dev mailing list archive at Nabble.com. _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list