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

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.

Posted on Friday, August 11, 2006 2:59 AM | Back to top


Comments on this post: What is the vshost.exe doing ?

# re: What is the vshost.exe doing ?
Requesting Gravatar...
thanks dude !! its nice
Left by Akash Varshney on Jun 23, 2008 12:52 AM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
Great find.
Left by Adam Nofsinger on Nov 06, 2008 5:55 AM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
Here is another post on this topic.

http://dotnetrobert.com/?q=node/25
Left by elifeinchrist on Mar 06, 2010 5:36 PM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
Great information
Left by Sandeep Kumar Narware on Mar 15, 2010 4:02 AM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
Wow! a good info in simple words. Tks.
Left by Kalelur Rahman on Apr 30, 2010 7:16 AM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
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.
Left by Jim on Sep 20, 2010 1:50 PM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
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.
Left by ScottK on Nov 17, 2010 10:22 AM

# re: What is the vshost.exe doing ?
Requesting Gravatar...
Thanks!
I suppose this is the file that speeds up application start time after the first build.
Left by Nabeel on Aug 08, 2011 8:40 AM

Your comment:
 (will show your gravatar)


Copyright © Hannes Pavelka | Powered by: GeeksWithBlogs.net