Forums - C# Corner

Forum guidelines


  • 1.3k
  • 34
  • 16.3k

Error in reading xml file

Aug 9 2011 2:36 AM
i am getting the following error,'http:/' is not a valid virtual path. please suggest me how to remove this error.

 protected void Page_Load(object sender, EventArgs e)
  string xmlfilepath = Server.MapPath(@"");
  if (File.Exists(xmlfilepath))
  using (DataSet ds = new DataSet())
  XmlDocument doc = new XmlDocument();
  ds.ReadXml(new XmlNodeReader(doc));
  Repeater2.DataSource = ds;

Answers (1)

File APIs for .NET – 25% off Aspose.Total
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more! Use coupon code HOL2016PSB