Sunday, 11 January 2009

Unable to build in VS2008

I’m sitting and trying to resolve an error in my application. It is the handling of images from the database, to the WPF gui. I have written a post about this in Swedish which I will translate when I have resolved the problem I have now. But this post is not about that, this post is about the annoying  build error
Unable to copy file "obj\Debug\exe-file" to "bin\Debug\exe-file.exe". The process cannot access the file 'bin\Debug\exe-file.exe' because it is being used by another process.

I’ve tried several ways to get around this, but it seems to be very hard, especially when GDI+ is involved. But one thing I’ve found that helps is to first kill the process vshost.exe for the current project. (It will be directly restarted), then I choose Clean Solution under the Build menu in VS2008, then I can build the solution again. I think the trick lies in killing the vshost.exe process.

Labels: , ,

kick it on DotNetKicks.com

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home