Must I always terminate projectname.vshost.exe?
-
יום רביעי 29 אפריל 2009 21:11
- I’m developing, and I make code changes.
- I press F5 to run with debug.
- ERROR: Microsoft Visual Studio – The operation could not be completed. The process cannot access the file because it is being used by another process. Press OK.
- WORKAROUND: Launch the Windows Task Manager and
terminate the process <projectname>.vshost.exe. - I press F5 to run with debug.
- it works.
I'm running Visual Studio 2005.
If I make no code changes in step 1, it skips steps 3. 4 and 5.
What is going on here? This happens far too often and is getting in the way of my productivity.
~ Shaun- הועבר על-ידי nobugzMVP יום רביעי 29 אפריל 2009 23:33 not a clr q (From:Common Language Runtime)
כל התגובות
-
יום חמישי 30 אפריל 2009 13:48מנחה דיון
The times I've seen vshost hang generally involve the debugging app causing a deadlock or really hosing memory. The best workaround is to disable the vshost process. Go into your project settings Debug -> Enable the Visual Studio hosting process
Michael Taylor - 4/30/09
http://p3net.mvps.org- הוצע כתשובה על-ידי Harry ZhuModerator יום רביעי 06 מאי 2009 02:29
- סומן כתשובה על-ידי Harry ZhuModerator יום חמישי 07 מאי 2009 03:42
-
יום שישי 12 פברואר 2010 11:15
The times I've seen vshost hang generally involve the debugging app causing a deadlock or really hosing memory. The best workaround is to disable the vshost process. Go into your project settings Debug -> Enable the Visual Studio hosting process
Michael Taylor - 4/30/09
http://p3net.mvps.org
Hi Michaell, Though i have made the changes told by you i still get the error : " The process cannot access the file because it is being used by another process ". What to do -
יום שישי 12 פברואר 2010 11:16Hi Michaell, Though i have made the changes told by you i still get the error : " The process cannot access the file because it is being used by another process ". What to do
-
יום שישי 12 פברואר 2010 13:33מנחה דיון
Short term: Go into your project's property page -> Debug and uncheck the option for using the host process. This will eliminate vshost.
Longer term you should consider upgrading to VS 2008 (or even VS 2010 when it comes out). You should also consider determining if there is anything that might be getting in the way of the process itself. Antivirus is known to cause problems for some folks.
Michael Taylor - 2/12/2010
http://msmvps.com/blogs/p3net- הוצע כתשובה על-ידי Ali Azhdari יום שישי 29 יולי 2011 11:23
-
יום שני 02 אוגוסט 2010 20:05I've just gotten this error in VS 2010 while working on a WCF client application. Is there any update on the means by which this error can be eliminated? I've been shutting down VS and restarting it, which I really (really!) would prefer not to have to do.
Thanks! -
יום רביעי 04 אוגוסט 2010 10:06Can't you use the solution from the reply immediately before yours?
-
יום שני 04 אוקטובר 2010 19:50
"Longer term you should consider upgrading to VS 2008 (or even VS 2010 when it comes out). You should also consider determining if there is anything that might be getting in the way of the process itself."
Yes ship more $ to MSFT! GMAFB. How about getting the A team back working on the IDEs? Incredible that "Developers developers developers" are now seen as "revenue revenue revenue". Shame on you.
Faulty file locking is still an issue in VS2010...5 long years later!!! No wonder why developers are abandoning MS in droves.
-
יום שישי 11 מאי 2012 12:26Thanks!