I am having the exact same issue.
My ServiceName is the same as my
performanceCounterInstaller.CategoryName. We are using the 1.1
Framework. Is this a known issue?
I am trying to convince the developers that it has to be changed, but
they want proof that this is the issue and not a symptom of other
problems.
From: "Jamie" <boogalooj@excite.com>
| I am having the exact same issue.
|
[quoted text clipped - 5 lines]
| they want proof that this is the issue and not a symptom of other
| problems.
Yes, this was a bug in v1.1. If a service and performance counter were
installed with the same name, then uninstalling either would delete the
other one as well. The reason is that they share reg keys. In v1.1,
installing a perf counter may also have deleted a service of the same name.
This has been fixed in v2.0.
In v1.1, you are best off not installing a service and a performance
counter of the same name. If you must do so, make very sure that after the
install, both are actually installed (even if the install appears to have
succeeded). The order you install them in matters.
If you unistall them together, the uninstall should work (i.e. both
components will be removed), even if you get an exception. If you want to
uninstall only one of them and expect the other to still be there, this
will not work in v1.1. In v2.0, check the order -- uninstalling the
service could delete the performance counter, even in v2.0.
Katy