467,075 Members | 968 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

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
it.

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.

Regards,
Daniel
Dec 7 '05 #1
  • viewed: 1076
Share:

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 this site, you agree to our Privacy Policy and Terms of Use.