Visual Studio Hosting Process and “The operation could not be completed”

前端 未结 7 1519
故里飘歌
故里飘歌 2020-12-02 02:46

When trying to execute from within Visual Studio 2008 your application and you get the (uninformative) message \"The operation could not be completed\".

The solution

7条回答
  •  -上瘾入骨i
    2020-12-02 03:25

    I use 4 different machines and have got this situation on all of them. I understand what is causing the problem - it is that the VS hosting process isn't terminating after the first debug session ends, which means that the next time that you try to compile the exe the hosting process is locking the exe and preventing compilation. Another solution therefore is to use Task Manager to kill the VS hosting process and compile and debug as normal but thats even more of a hassle!

    I can't think that its anything in my code that would be causing this - its probably a VS issue itself isn't it?

提交回复
热议问题