472,118 Members | 1,074 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

NullReferenceException in Installer.Uninstall()

(originally posted to microsoft.public.dotnet.framework)

Hi All,

I have a Windows Service project that contains an "Installer" class that is
used to install and uninstall the service. The installer class (call it
MyServiceInstaller) inherits from System.Configuration.Install.Installer, of
course. The constructor for MyServiceInstaller configures and adds a
ServiceProcessInstaller object and a ServiceInstaller object to the
Installers collection.

This setup works fine 99% of the time. Recently, though, when the service
was uninstalled from a particular machine, the uninstall generated a
NullReferenceException. The exception caused the uninstall to roll back
(i.e. the service couldn't be uninstalled). This machine is used for testing
and several successfull installs/uninstalls had already been performed on

I thought it would be relatively easy to find and fix the problem until I
realized that the exception occurred in
System.Configuration.Install.Installer.Uninstall() , not in my code. Without
debug symbols, I find it basically impossible to know what's going on when
the exception occurs. I didn't find Reflector to be much help, either. This
is framework v1.1, by the way.

Thanks for any help.

Dec 7 '05 #1
0 1176

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by krisk | last post: by
1 post views Thread by Jasim Iqbal | last post: by
5 posts views Thread by Arun Bhalla | last post: by
reply views Thread by Arun Bhalla | last post: by
4 posts views Thread by sklett | last post: by
3 posts views Thread by Scewbedew | last post: by

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.