[Mono-list] XML-RPC listener produces exception on Mono, but works on .NET ("Cannot be changed after headers are sent")

Adam Tauno Williams adam at morrison-ind.com
Tue Dec 18 16:46:20 EST 2007


I've created an XML-RPC service using the CookComputing XML-RPC assembly
as described at - http://www.cookcomputing.com/blog/archives/000572.html

But it doesn't work [correctly] under Mono 1.2.6 whereas it does work
in .NET.  See -
http://tech.groups.yahoo.com/group/XMLRPCNET/message/970

On Mono I get -
Cannot be changed after headers are sent.
  at System.Net.HttpListenerResponse.set_ContentType (System.String
value) [0x00039]
in /tmp/monobuild/build/BUILD/mono-1.2.6/mcs/class/System/System.Net/HttpListenerResponse.cs:110 
  at
Whitemice.Hexagonal.RPCResponse.CookComputing.XmlRpc.IHttpResponse.set_ContentType (System.String value) [0x00000] in /home/awilliam/Works/Hexagonal/RPCResponse.cs:21 
  at CookComputing.XmlRpc.XmlRpcHttpServerProtocol.HandleHttpRequest
(IHttpRequest httpReq, IHttpResponse httpResp) [0x00000] 
 - every time a request is processed,  although the client does receive
the response.

The author of the XML-RPC assembly has verified that it works on .NET
and fails on Mono, see - 
http://tech.groups.yahoo.com/group/XMLRPCNET/message/971

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20071218/474bea96/attachment.bin 


More information about the Mono-list mailing list