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.
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.
None
0 Points
268 Posts
Path too long exception System.IO.PathTooLongException:
Aug 26, 2004 07:38 PM|bsobaid|LINK
Member
30 Points
851 Posts
Re: Path too long exception System.IO.PathTooLongException:
Aug 26, 2004 09:11 PM|tomasr|LINK
tomasr@mvps.org
None
0 Points
1 Post
Re: Path too long exception System.IO.PathTooLongException:
Nov 01, 2017 06:36 PM|Carson Clay|LINK
For path too long is the software Long Path Tool.