Ok, before I say anything else, let me note that I know this has been asked multiple times on SO. However, I have scoured the internet and haven't been able to find a solution for my particular case.
I'm trying to take an XmlDocument object and save it to a network drive. It works perfectly when I try to save it to my local C drive, but when I try to save to a network drive, either testing locally or from an IIS7 web server, I get the error "Cannot find part of the path V:\Test\DocName.xml". Here is the code I am using to try and accomplish this:
using (var stream = new FileStream(Path.Combine(@"V:\Test", doc.DocumentElement.Name + ".xml"), FileMode.Create, FileAccess.Write))
doc.Save(stream);
doc is, of course, an XmlDocument. I have double and triple checked that I have rights to the directory, and I know for a fact that it exists and is not hidden or anything. Any ideas?