NullReferenceException in client, when server does not exist

"nattelshay" <[email protected]> Mon, 16 Oct 2006 15:53:59 -0000
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
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:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

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