Hannes Pavelka
It isn't rocket science. Well, unless of course you're NASA

What is the vshost.exe doing ?

Friday, August 11, 2006 2:59 AM

If you are developing with Visual Studio 2005 you probably have seen the *.vshost.exe files inside of your bin folder or you saw the process running while debugging. The vshost.exe file is coming from Visual Studio and serves a very good purpose. The vshost.exe is a new Visual Studio 2005 feature and is actually a hosting process.

It serves mainly three purposes:

  • Improve Performance
    The hosting process improves performance by handling creation of the AppDomain and initalization of the debugger.
  • Allow partial trust debugging
    Simulating a partial trust environment within Visual Studio requires special setup of the AppDomain. Vhost.exe takes care of this.
  • Allow design time expression evaluation.
    Supports the Immediate Window.

The *.vshost.exe files are exclusively used by the VS 2005 IDE, they serve no other purpose.

If you want  to disable the generation of the vshost files you can do so under your projects settings.

In general, when the hosting process is disabled the time needed to begin debugging increases.



  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: What is the vshost.exe doing ?

thanks dude !! its nice 6/23/2008 12:52 AM | Akash Varshney

# re: What is the vshost.exe doing ?

Great find. 11/6/2008 5:55 AM | Adam Nofsinger

# re: What is the vshost.exe doing ?

Here is another post on this topic.

http://dotnetrobert.com/?q=node/25
3/6/2010 5:36 PM | elifeinchrist

# re: What is the vshost.exe doing ?

Great information 3/15/2010 4:02 AM | Sandeep Kumar Narware

# re: What is the vshost.exe doing ?

Wow! a good info in simple words. Tks. 4/30/2010 7:16 AM | Kalelur Rahman

# re: What is the vshost.exe doing ?

I got this error from bad Webcam Software. The program was buggy, but it is showing up as a Windows Hosting Process error in my case. 9/20/2010 1:50 PM | Jim

# re: What is the vshost.exe doing ?

Thanks for the info. A followup suggestion: You can disable the generation of this file in the Release configuration while leaving it enabled in Debug. That way you get it when it's useful, but not when it isn't and is just clutter. 11/17/2010 10:22 AM | ScottK

# re: What is the vshost.exe doing ?

Thanks!
I suppose this is the file that speeds up application start time after the first build. 8/8/2011 8:40 AM | Nabeel

Post a comment