Philip

Philip

  • NA
  • 5
  • 0

XmlDocument does not load deep enough when deployed.

Mar 22 2011 7:05 AM
Need help,

I´m loading an xml file using

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(filePath);

Everything works fine when I am debbuging.

However when I publish the application as a clickonce package something weird happens.
The above code works, however not the entire xml file gets loaded. The root node and first and second level nodes gets loaded but not the third and fourth level nodes (and so on..).
If I attach a debugger to the clickonce-application everything works fine again but as soon as I detach the debugger the xml document does not get "deep" loaded.

I have struggled with this for two days now.


Framework 3.5 (Winforms application)
Vista X64
VS2010

Thanks

Answers (6)