Path too long exception System.IO.PathTooLongException: RRS feed

  • Question

  • User-2067076400 posted
    Hi, I am getting this error when I am trying to convert dataset into XML xmldocu.Load(dset.GetXml()); where dset is the Dataset containg the data. ERROR: System.IO.PathTooLongException: The path is too long after being fully qualified. Make sure path is less than 260 characters. My webservice returns a dataset to the calling application. It was working jsut fine with the dataset, but when I tried converting it into the xml first before returning, it gave me this error. I also tried returning dataset to the calling application and converting dataset into xml in the calling application but it gave me the same error.
    Thursday, August 26, 2004 7:38 PM

All replies

  • User-1030800308 posted
    Your code is incorrect. You should be doing: xmldocu.LoadXml(dset.GetXml()); Notice the use of LoadXml(), not Load(). Load is interpreting your xml code as a file name, and barfing at that.
    Thursday, August 26, 2004 9:11 PM
  • User1931171458 posted

    For path too long is the software Long Path Tool.

    Wednesday, November 1, 2017 6:36 PM