473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Where is *.vshost.exe coming from?

I have a VS.NET 2005 solution with 10 projects. I have unbinded all
projects, closed and reopened the solution. When I build, via Nant, I
copy all of the PDB and DLLs to the EXE bin/debug folder. Source Safe
is not running. I see a myapp.vshost.exe in the bin/debug folder. I
cannot delete it. I can't kill that process either.

When I do a build, I want to clean out the bin/debug folder. However,
the myapp.vshost.exe file locks DLLs and prevents me from cleaning the
bin/debug folder. Because I'm building via Nant and not using VS.NET
Source Safe integration, I don't see where the *.vshost.exe file is
coming from. I have closed the solution and VS.NET but still get the
file.

Any ideas?

Thanks,
Brett

Mar 13 '06 #1
10 23599
Brett,

The vshost.exe file is created by VS.NET for you. This is a shell that
runs your program when you debug. One of the main purposes, if I recall
correctly, is so that it can set security correctly in case you want to run
in something other than full trust.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
I have a VS.NET 2005 solution with 10 projects. I have unbinded all
projects, closed and reopened the solution. When I build, via Nant, I
copy all of the PDB and DLLs to the EXE bin/debug folder. Source Safe
is not running. I see a myapp.vshost.exe in the bin/debug folder. I
cannot delete it. I can't kill that process either.

When I do a build, I want to clean out the bin/debug folder. However,
the myapp.vshost.exe file locks DLLs and prevents me from cleaning the
bin/debug folder. Because I'm building via Nant and not using VS.NET
Source Safe integration, I don't see where the *.vshost.exe file is
coming from. I have closed the solution and VS.NET but still get the
file.

Any ideas?

Thanks,
Brett

Mar 13 '06 #2
http://blogs.msdn.com/dtemp/archive/...17/215764.aspx

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
I have a VS.NET 2005 solution with 10 projects. I have unbinded all
projects, closed and reopened the solution. When I build, via Nant, I
copy all of the PDB and DLLs to the EXE bin/debug folder. Source Safe
is not running. I see a myapp.vshost.exe in the bin/debug folder. I
cannot delete it. I can't kill that process either.

When I do a build, I want to clean out the bin/debug folder. However,
the myapp.vshost.exe file locks DLLs and prevents me from cleaning the
bin/debug folder. Because I'm building via Nant and not using VS.NET
Source Safe integration, I don't see where the *.vshost.exe file is
coming from. I have closed the solution and VS.NET but still get the
file.

Any ideas?

Thanks,
Brett

Mar 13 '06 #3
It seems to lock these files randomly. What is the reason for holding
them as locked if I'm not debugging? How does the "clean" feature in
Studio work if they are locked?

Brett

Mar 13 '06 #4
I've found that as long as I keep VS open with that project, those files
will be locked. If you shut down the IDE, they go away.

I couldn't tell you the reason they stay locked. Why does it matter to you?
I've sort of largely ignored these files, and been fine so far.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
It seems to lock these files randomly. What is the reason for holding
them as locked if I'm not debugging? How does the "clean" feature in
Studio work if they are locked?

Brett

Mar 13 '06 #5
>Why does it matter to you?

As I mentioned, I want to delete the files on every new build.

Brett

Mar 13 '06 #6

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
| >Why does it matter to you?
|
| As I mentioned, I want to delete the files on every new build.
|
| Brett
|

Don't use the hosting process then, you can turn it off in your project
settings.

Willy.
Mar 13 '06 #7
Doesn't that turn off debugging capabilities and other features I need?
I don't want to loose features. Just stop the file locking.

Brett

Mar 14 '06 #8
I turn it off all the time, never had any problems while debugging. I turn
it off because I had too many issues with this, I want my application to run
in it's own process not in a host that keeps running and is supposed to
load/unload my application. Don't forget that when hosting your security
context is the context of the host, which may lead to surprises when you
change the context in your code.

Willy.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11*********************@j52g2000cwj.googlegro ups.com...
| Doesn't that turn off debugging capabilities and other features I need?
| I don't want to loose features. Just stop the file locking.
|
| Brett
|
Mar 15 '06 #9
VSHOST.exe is the hosting process used by Visual Studio.

A copy of this is created every time you build you run your project
(currently i use F5). It is suppost to provide improved performance when
running your project from within the IDE. It also offers the ability to use
Partial Trust Debugging and design time expression evaluation.

Removing this process from the process list will cause problems when running
the IDE because Visual Studio requires this process indefinatly when your
project is in run mode.

Regards
Scott Blood
C# Developer

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uu**************@TK2MSFTNGP12.phx.gbl...
I turn it off all the time, never had any problems while debugging. I turn
it off because I had too many issues with this, I want my application to
run
in it's own process not in a host that keeps running and is supposed to
load/unload my application. Don't forget that when hosting your security
context is the context of the host, which may lead to surprises when you
change the context in your code.

Willy.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11*********************@j52g2000cwj.googlegro ups.com...
| Doesn't that turn off debugging capabilities and other features I need?
| I don't want to loose features. Just stop the file locking.
|
| Brett
|

Mar 15 '06 #10
You don't have to remove it from the "process list" (that is kill it), you
need to disable the option in your project settings (see Debug options).
When it's disabled, VS will no longer spawns the host when debugging. This
option is only valuable on slower boxes as it speeds up the loading process
of an application when debugging, but on reasonable fast systems the
differences aren't visible at all.
Willy.
"scott blood" <sc*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| VSHOST.exe is the hosting process used by Visual Studio.
|
| A copy of this is created every time you build you run your project
| (currently i use F5). It is suppost to provide improved performance when
| running your project from within the IDE. It also offers the ability to
use
| Partial Trust Debugging and design time expression evaluation.
|
| Removing this process from the process list will cause problems when
running
| the IDE because Visual Studio requires this process indefinatly when your
| project is in run mode.
|
| Regards
| Scott Blood
| C# Developer
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:uu**************@TK2MSFTNGP12.phx.gbl...
| >I turn it off all the time, never had any problems while debugging. I
turn
| > it off because I had too many issues with this, I want my application to
| > run
| > in it's own process not in a host that keeps running and is supposed to
| > load/unload my application. Don't forget that when hosting your security
| > context is the context of the host, which may lead to surprises when you
| > change the context in your code.
| >
| > Willy.
| >
| > "Brett Romero" <ac*****@cygen.com> wrote in message
| > news:11*********************@j52g2000cwj.googlegro ups.com...
| > | Doesn't that turn off debugging capabilities and other features I
need?
| > | I don't want to loose features. Just stop the file locking.
| > |
| > | Brett
| > |
| >
| >
|
|
Mar 15 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gianfranco | last post by:
Hi I got a problem with 2 tables. I have a table, say A, with x records, coming from a make table query and a table, say B, with y records, coming from another make table query. I need to join...
1
by: Queen's | last post by:
I have a database I'm working with which has tables and reports. The controls in the reports are bound to data, but I'm at a loss to explain where the data is coming from. I have gone so far as to...
1
by: WindAndWaves | last post by:
Hi Gurus I write a lot of procedures where I call on special functions. Lets say a little function that runs SQL or that checks a specific value. Now, if there is an error in these little...
3
by: genc ymeri | last post by:
Hi, What can I use in C# for dynamic arrays ???? I have some records (struts in ..Net) and want to store them in a dynamic "arrays" or object list. I noticed the in C# arrays' length can't be...
15
by: Drebin | last post by:
I am retrofitting a central login application and want to be able to read the Request.ServerVariables so that when they have logged on, I can send them back to wherever they were trying to go.. ...
1
by: Henke | last post by:
Hi I have added a image button on a web page that is used for navigating back to the page I come from. I'm "jumping" between pages using Server.Transfer. Where can I find the address for the page I...
10
by: Bande | last post by:
There is a program in VB , in which, there is a Form_QueryUnload( Cancel as Integer, UnloadMode as Integer) which would be called when the form is being closed. The UnloadMode is used to find...
2
by: Sega | last post by:
I am trying to find where my user came from - in particular whether they came from our application login on our own site or whether they came by keying the url directly without going through our...
2
by: karimkhan | last post by:
I want to store images coming from telescope at 24 locations . Images coming at rate of 200 /sec . Then after reducing this 24 images into two images have to deal with next 24 images . No need for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.