I have a xml file that needs to be read from many many times. I am trying to use the Parallel.ForEach to speed this processes up since none of that data being read in is re
When you open the file, you need to specify FileShare.Read :
FileShare.Read
using (var stream = new FileStream("theFile.xml", FileMode.Open, FileAccess.Read, FileShare.Read)) { ... }
That way the file can be opened multiple times for reading