Error installing Service using installutil on .NET 2.0

E

eoinmoon

Hi all,

New to C# and VS 5 and .NET. I have attempted to write a service via
various examples and after several failed attempts to write an
installer via the VS 5 wizards,etc I tried to install the service
manually using Installutil.exe utility.

Unfortunately I am getting an error very early on, during the
Installation phase which has left me totally stumped as I don't know
how to go about fixing this.

Below is the output from the utility, if anyone can be of any help it
would be greatly appreciated. I have looked into finding an answer on
this and hopefully I have not missed out on an obvious source for the
solution (and therefore will not annoy with possibly a newbie problem)

Regards
Eoin

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the D:\RoutingSetup\routing.ex
e assembly's progress.
The file is located at D:\RoutingSetup\routing.InstallLog.
Installing assembly 'D:\RoutingSetup\routing.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\RoutingSetup\routing.exe
logfile = D:\RoutingSetup\Routing.InstallLog

An exception occurred during the Install phase.
System.NullReferenceException: Object reference not set to an instance
of an object.
 
M

Mr. Arnold

Hi all,

New to C# and VS 5 and .NET. I have attempted to write a service via
various examples and after several failed attempts to write an
installer via the VS 5 wizards,etc I tried to install the service
manually using Installutil.exe utility.

Unfortunately I am getting an error very early on, during the
Installation phase which has left me totally stumped as I don't know
how to go about fixing this.

Below is the output from the utility, if anyone can be of any help it
would be greatly appreciated. I have looked into finding an answer on
this and hopefully I have not missed out on an obvious source for the
solution (and therefore will not annoy with possibly a newbie problem)

Regards
Eoin

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the D:\RoutingSetup\routing.ex
e assembly's progress.
The file is located at D:\RoutingSetup\routing.InstallLog.
Installing assembly 'D:\RoutingSetup\routing.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\RoutingSetup\routing.exe
logfile = D:\RoutingSetup\Routing.InstallLog

An exception occurred during the Install phase.
System.NullReferenceException: Object reference not set to an instance
of an object.

I have as of yet to work with a .NET NT Service using VS 2005 and .NET 2.0.
I have done a couple using .Net 2003 using .Net 1.1.

Is there a message is the System Event log?

Well, that NullReference means that a reference to an object that's needed
is null, due to the object not being instantiated, before the code wants to
use the object.

Maybe, you can get a more detailed error message in the Event logs of the
O/S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top