Possible Bug in DataSet.ReadXml()

M

Michelle Weber

Using the 1.1 Framework, when I have some odd, but not illegal characters in
a filename and use the DataSet.ReadXml() method I get the error "Illegal
characters in path."

For example if I do this:

string filename = @"d:\pathtowebsite\testfilename%3f.xml";

DataSet ds = new DataSet();
if (File.Exists(filename))
{
ds.ReadXml(filename);
}

It will throw the error "Illegal characters in path." on the ds.ReadXml()
line.


However if I do this:

string filename = @"d:\pathtowebsite\testfilename%3f.xml";

DataSet ds = new DataSet();
if (File.Exists(filename))
{
StreamReader sr = new StreamReader(filename);
ds.ReadXml(sr);
sr.Close();
}

It works just fine.


I think this is a bug. What is the appropriate way to report it?

Thanks,


--
Michelle Weber
(e-mail address removed)

Pliner Solutions, Inc
http://www.pliner.com
Tel: 215-658-1601
Fax: 215-658-1602
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top