Hi Gerry (and Edin),
Probably a bit late, but I hope you read this - I had the same problem and found the solution in saving the file not to C:\\, but to a sub directory.
Where "C:\\demo.xml" didn't work, "C:\\demo\\demo.xml" (for C# demo\\demo.xml - two back slashes) works fine!
Good luck, BartH