Multiple VS 2008 web server tray icons
Hey everyone,
I am currently using Visual Studio 2008 Team SP1 on windows vista.
When I run my projects, stop, and run again, a new Web Development Server tray icon is created, and does not remove old ones. some times i have 7-10 icons in my system tray, but as soon as I hover my mouse over them, they disappear.
Is there any way to prevent this from happening?
Cheers,
Re: Multiple VS 2008 web server tray icons
Are you using the Stop button in the IDE to stop debugging? If so then try closing your browser first, or instead, depending on which browser you're using.
Re: Multiple VS 2008 web server tray icons
You can also restrict your site to use just one port so that it uses the same 'icon' over and over again (as each one is associated with a VS Web Server). Right click on the project, properties, 'web' tab and select a port in there.
Re: Multiple VS 2008 web server tray icons
hey guys,
Have been either using the Stop button or closing the browser. And have set my project to use port 80.
Its the exact same setup I was using in VS 2005, but now in 2008 is seems to keep the tray icons there until i hover my mouse over them.
The process is no longer running for all of them, so maybe a windows vista issue?
Re: Multiple VS 2008 web server tray icons
Hey,
I have noticed the issue that you are talking about on my Windows XP Machine using Visual Studio 2005. I don't find it a huge issue though, like you say, just hover over them and they go away.
Gary
Re: Multiple VS 2008 web server tray icons
that is not a problem in your code. The tray icons dissapear only if you destroy them in the source. If an abnormal termination occures
(stop the debugger for example), the icon stays and will be
deleted on refresh from the OS.
While debugging there is no way to solve that.
You need to ensure that the icons are deleted when your application is
running in standalone mode.
It is not a big deal, since if you do not destroy the icons in your code,
the OS will do that for you on tray refresh, but the user will notice it,
and that is not what a good software must allow.