C# How to to tell what process is using a file?
<p>I am getting a pretty common, "The process cannot access the file because it is being used by another process."</p>

<p>Now I am nearly certain that the only process accessing this file is from code that I have written and I've been careful to use a using statement around accessing it. </p>

<p>But to be 100% sure, is there anyway to check this programatically when this error occurs?</p>
