Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / June 2005

Tip: Looking for answers? Try searching our database.

Exception while uninstalling a service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jakk - 24 May 2005 19:16 GMT
I have a windows service written in C# and it has the following
installers.

Installers.Add(new ProjectInstaller() /* EIF installer */);
Installers.Add(perfCounterInstaller);
Installers.Add(serviceInstaller);
Installers.Add(processInstaller);

It installs correctly without any error/exception but when I try to
uninstall it it throws an exception

An exception occurred during the uninstallation of the
System.Diagnostics.PerformanceCounterInstaller installer.
System.InvalidOperationException: Cannot delete Performance Category
because this category is not registered or is a system category.
An exception occurred while uninstalling. This exception will be
ignored and the uninstall will continue. However, the application might
not be fully uninstalled after the uninstall is complete.

Can anyone tell me what might be the error??

Rags
Katy King - 27 May 2005 23:41 GMT
1) What version of the Framework?
2) Is the PerformanceCounterCategory you are installing the same name as
the Service?

Katy

--------------------
| From: "jakk" <rjakkani@gmail.com>
|
[quoted text clipped - 20 lines]
|
| Rags
Jamie - 08 Jun 2005 16:29 GMT
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.

> 1) What version of the Framework?
> 2) Is the PerformanceCounterCategory you are installing the same name as
[quoted text clipped - 27 lines]
> |
> | Rags
Katy King - 17 Jun 2005 02:21 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.