logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

NullReferenceException in client, when server does not exist: msg#00007

Subject: NullReferenceException in client, when server does not exist
I'm trying to test some C# code that uses xml-rpc.net (2.1.0) client
side, against the wall - meaning against a server that is not running.

The client is on my XP and is trying to connect to host "127.0.0.1",
port 7777 (and for this test, no one is listening on this port).

The XmlRpcProxyGen.Create() goes well, and then on the first Invoke()
I'm getting a NullReferenceException, in XmlRpcClientProtocol.cs at
line 159. Apparently line 148 - which is 

    reqStream = webReq.GetRequestStream();

fails (which is obvious), and then the 'finally' clause attempts to do

    reqStream.Close();

and has a bit of a problem, since reqStream is null.

Am I missing something obvious?





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:xml-rpc-digest@xxxxxxxxxxxxxxx 
    mailto:xml-rpc-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    xml-rpc-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





<Prev in Thread] Current Thread [Next in Thread>