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

前端 未结 7 1491
故里飘歌
故里飘歌 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条回答
  • 2020-12-02 03:07

    I honestly have never seen this message and I work with Visual Studio for at least 8 hours a day. Is this reproducible on other machines? If so is there anything weird or abnormal in your code that could cause this to crash?

    0 讨论(0)
  • 2020-12-02 03:08

    There are several causes and workarounds regarding to this problem and you might try the following ones that are useful most of the time:

    Delete the "Your_Solution_FileName.suo" file and restart Visual Studio.

    or

    Right click on the project and select Unload Project and then click Reload Project by right clicking on the project again might also fix it.

    Hope this helps...

    0 讨论(0)
  • 2020-12-02 03:10

    Here's the anwser: disable "Enable he Visual Studio hosting process" in he debug tab of your projects properties.

    I found it here: http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/40d2d241-a0c0-4137-9da9-e40611972c0e/

    0 讨论(0)
  • 2020-12-02 03:14

    The problem with turning off this "hosting process" is that all the "run and rewrite" functionality is no longer available.

    The Visual Studio Hosting Process is not needed to allow Edit and Continue. It is used for "Design time expression Evalutation" in the case where the project is a dll rather than an EXE. It is also used to provide debugging for partial trust scenarios. See the documentation for everything it does.

    It is highly unlikely it does anything you need, so don't feel bad turning it off.

    0 讨论(0)
  • 2020-12-02 03:21

    Probably your web hosting already turn of the network function, you can open a ticket to contact with your web host to confirm, or anything you did would be useless.

    Some visual studio hosting can be found at here.

    Good luck,

    Mark

    0 讨论(0)
  • 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?

    0 讨论(0)
提交回复
热议问题