Last post May 08, 2008 03:17 AM by Thomas Sun – MSFT
May 06, 2008 04:33 PM|zsoccer|LINK
I use VS2003. Recently I keep getting this error when building the solution. Any idea how to fix it?? THANKS!
Could not write to output file '...\obj\Debug\abc.dll" -- 'The process cannot access the file because it is being used by another process'
Visual Studio 2003
May 06, 2008 10:59 PM|ps2goat|LINK
Close any other projects that link to this dll (i.e., any extra Visual Studio instances). Also, try closing the app-- If you are running/debugging the project that references this dll, then you may be using that dll.
May 07, 2008 09:35 AM|zsoccer|LINK
Thanks for your reply. it looks like all instances you mentioned above are not my cases. I have only one VS 2003 running, and I didn't debug or run any project. The error message shows up whenever I build the solution.
May 08, 2008 03:17 AM|Thomas Sun – MSFT|LINK
The error message means that this file is used by another process.
You can try to check the following tips:
You can refer to
http://aspadvice.com/blogs/ssmith/archive/2005/03/21/1849.aspx for more information.
You also can try to use Process Explorer to inspect which process is using this file. You can download PE from
I hope this helps.