Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. "Path Too Long" Error when readina string of XML

"Path Too Long" Error when readina string of XML

Scheduled Pinned Locked Moved Visual Basic
helpcssdebuggingxmlquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thompsonson
    wrote on last edited by
    #1

    Hey all, I get the following error when using the load method of XMLDocument (the XML is in string format) There is no path, it is justa string... anyone come across this? TIA, Matt --------------ERROR------------- An unhandled exception of type 'System.IO.PathTooLongException' occurred in mscorlib.dll Additional information: The path is too long after being fully qualified. Make sure path is less than 260 characters. --------------ERROR------------- --------------CODE ERRORING ON------------ trackXMLdoc.Load(trackXMLstr) 'dim trackXMLdoc as New XMLDocument() --------------CODE ERRORING ON------------- --------------XML (from debug window)------------- trackXMLstr " Shitbag 9 2962 \\Mediabox\Music\Gomez\Abandoned Sopping Trolley Hotline\Gomez - Abandoned Shopping Trolley Hot - 01 - Shitbag 9.mp3 1 261 " String --------------XML (from debug window)------------- PS. There was more XML and I can post/email it if it'd help. But the message blackmailed me ;o). Made me think of the poor chaps with 56K modems!

    N 1 Reply Last reply
    0
    • T Thompsonson

      Hey all, I get the following error when using the load method of XMLDocument (the XML is in string format) There is no path, it is justa string... anyone come across this? TIA, Matt --------------ERROR------------- An unhandled exception of type 'System.IO.PathTooLongException' occurred in mscorlib.dll Additional information: The path is too long after being fully qualified. Make sure path is less than 260 characters. --------------ERROR------------- --------------CODE ERRORING ON------------ trackXMLdoc.Load(trackXMLstr) 'dim trackXMLdoc as New XMLDocument() --------------CODE ERRORING ON------------- --------------XML (from debug window)------------- trackXMLstr " Shitbag 9 2962 \\Mediabox\Music\Gomez\Abandoned Sopping Trolley Hotline\Gomez - Abandoned Shopping Trolley Hot - 01 - Shitbag 9.mp3 1 261 " String --------------XML (from debug window)------------- PS. There was more XML and I can post/email it if it'd help. But the message blackmailed me ;o). Made me think of the poor chaps with 56K modems!

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      I'm not sure if I'm reading this correctly, but is trackXMLstr actually the content of the xml? If it is, you need to use the LoadXml function, not the Load function, which accepts the path of the xml file, not the content itself. Nick Seng (the programmer formerly known as Notorious SMC)


      God, I pity me! - Phoncible P. Bone

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups