I received a very weird IOException when writing to an XML file:
System.IO.IOException: The requested operation cannot be performed on a file with a user-map
Looks like another process had the file open using the file mapping (shared memory) APIs.
The find function in Process Explorer should be able to tell you.