[Mono-dev] Bug in XmlSerializer Deserialize?

Engler, Eric Eric.Engler at zcsterling.com
Wed Oct 24 13:09:32 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> StreamReader sr = new StreamReader(URL);

I don't think a StreamReader constructor can take a URL.

Try something like this:

WebClient w = new WebClient();
StreamReader sr = new StreamReader(w.OpenRead(URL));

Eric


NOTICE:  The information contained in this electronic mail transmission is intended by the sender for the sole use of the named individual or entity to which it is directed and may contain information that is privileged or 
otherwise confidential.  Please do not copy it or use it for any purposes, or disclose its contents to any other person.  To do so could violate state and Federal privacy laws.  If you have received this electronic mail
transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.  Thank you for your cooperation.

-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 2.6.2
Charset: us-ascii

wsBVAwUBRx98TchfyUs+le7yAQgjyQf9FQXmL4LJC7C2yhZFBrMI7lq/p4lzCWFo
oVhUkhCKbV/5j0lR2wCGN7VSvTPyVxYw0f96FjIeB+Ilj1dgn3z5FJSLGvJZZcxj
RPLqPhlDOZfYELBtJaVTjo4WehMmcJK8DujluKXApG5Wz0DbuZx0DL9O49LJuzNs
T9pRrEBDWW4F/TP1p1TjlRdOG+NfmIWoCakNik0zfuxxvb8ksgn5fEEAmOzDjXu0
RPAK1UX9/joIt5l3XNy0UypH/ztIicPoqzDAtlbrwDY/WMeM6pCe+dThsqyNh9Ld
QzZJk/Joo8goVdUYU6GjGkOmSuvJA0U+D4o2slopD22YwiMEotd+rQ==
=TGGw
-----END PGP SIGNATURE-----



More information about the Mono-devel-list mailing list