开发者

cannot access because it is used from another process

Well suddenly when I’m trying to run my project from the debugger in Visual Studio 2010 It gives me this error:

Error   40  Unable to copy file "obj\x86\Debug\AssetsManagement.exe" to "bin\Debug\AssetsManagement.exe". The process cannot access the file 'bin\Debug\AssetsManagement.exe' because it is being used by another process.

Please is there someone how knows why that happens?

I have already delete the x86\Debug subfolder and te bin\Debug subfolder but nothing happen开发者_Go百科

Especially in the second folder the only file which cannot deleted was the the .exe file Also with the same error.


Most of the time when I see this error I go look in task manager and I see a VSHost file for my project running. You can't kill it, it just comes back. It's gotten to the point now I always uncheck enable visual studio hosting on the debug tab when I start a new project.


Try commenting out AssemblyVersion in AssemblyInfo.vb and performing a build.

Assembly: AssemblyVersion("1.0.0.0")

This has worked for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜