vshost.exe and debugging

W

William LaMartin

I have Visual Studio 2005 installed on both a desktop computer and a laptop
computer. Everything is fine on the desktop machine.

On the laptop if I either create a new VB.Net project or try to use a
previously created one, I have a problem with debugging. The debugging
process appears to start with the hour glass blinking on and off but then
nothing really happens. Additionally, the executable is created in the
bin\debug folder, but when you double click on it, it does not run.
However, you can copy the executable to somewhere else on the laptop and it
will run.

After some investigation, I found that on the laptop, by going into the
project properties and unchecking the check box labeled "Enable the Visual
Studio hosting process" that is on the Debug tab, I could then debug the
project.

This problem did not always exist on the laptop. It started sometime in the
past 12 months, I think.

So, what could be different on the laptop from the situation on the desktop
that would be causing this problem? And does anyone know a solution that
would allow me to leave Enable the Visual Studio hosting process" checked
in the project properties' debug tab?
 
R

rowe_newsgroups

I have Visual Studio 2005 installed on both a desktop computer and a laptop
computer. Everything is fine on the desktop machine.

On the laptop if I either create a new VB.Net project or try to use a
previously created one, I have a problem with debugging. The debugging
process appears to start with the hour glass blinking on and off but then
nothing really happens. Additionally, the executable is created in the
bin\debug folder, but when you double click on it, it does not run.
However, you can copy the executable to somewhere else on the laptop and it
will run.

After some investigation, I found that on the laptop, by going into the
project properties and unchecking the check box labeled "Enable the Visual
Studio hosting process" that is on the Debug tab, I could then debug the
project.

This problem did not always exist on the laptop. It started sometime in the
past 12 months, I think.

So, what could be different on the laptop from the situation on the desktop
that would be causing this problem? And does anyone know a solution that
would allow me to leave Enable the Visual Studio hosting process" checked
in the project properties' debug tab?

It's a bug that's been around since the launch of VS 2005, I had it on
my old development box. I'm not sure of a solution, except maybe a
clean install, as I just replaced the computer (yipee!). Also, have
you installed the service pack for Visual Studio? Perhaps that will
fix your problem.

Thanks,

Seth Rowe [MVP]
 
W

William LaMartin

By the service pack for VS, I assume you mean ENU Service Pack 1. That is
installed on the laptop computer exhibiting the problem.

What is amazing about the problem was that I could find nothing on it--the
debug starting and then apparently stopping. I had to piece together
various information over several months until I settled on the vshost thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top