I'm running a WCF service on windows 7 .net3.5 on ISS and accessing it with a variety of clients. Using basic http binding with no security. (I also tried custom binding with keepalive off but that made no difference.) Each request is made with a new wcf client object which is then closed after the request responds.
I get an intermittent exception on the server (maybe 1 in 10 requests but not predictable) for requests coming from a Mac running Lion (on same subnet connected with a switch). Other configurations seem to be ok (see table below) . The implementation of the WCF client on mac and iOS is using Mono and MonoTouch WCF. The source code for the mono WCF client is the same actual files as compiled for the .net wcf client. The message from the exception is "The number of bytes available is inconsistent with the HTTP Content-Length header. There may have been a network error or the client may be sending invalid requests." I have checked this with wireshark and it is not true. The Http headers (and soap payload) are identical for the requests that work and the ones that don't . The requests that fail get a ACK/RST instead of a soap response Does anyone have any ideas what might be the problem here? Or further things to check? In the end this is really just a PITA for development which I can probably live with, but not knowing what the problem is makes me nervous. *Client * *Routing * *WCF Server * *Result * winxp console app same lan switch WCF service on same subnet okay - no exceptions win7 console app localhost WCF service on same computer okay - no exceptions Mac console app same lan switch WCF service on same subnet bad - ProtocolException thrown intermittently Mac running iOS simulator app same lan switch WCF service on same subnet bad - ProtocolException thrown intermittently Mac running iOS simulator app internet WCF service on remote subnet okay - no exceptions Ipad running app under debug wifi to same lan WCF service on same subnet okay - no exceptions _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
