473,766 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error installing Service using installutil on .NET 2.0

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.Instal lLog.
Installing assembly 'D:\RoutingSetu p\routing.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\RoutingSetup \routing.exe
logfile = D:\RoutingSetup \Routing.Instal lLog

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

May 15 '07 #1
1 4933

<eo******@gmail .comwrote in message
news:11******** ************@l7 7g2000hsb.googl egroups.com...
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.Instal lLog.
Installing assembly 'D:\RoutingSetu p\routing.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\RoutingSetup \routing.exe
logfile = D:\RoutingSetup \Routing.Instal lLog

An exception occurred during the Install phase.
System.NullRefe renceException: 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.
May 15 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
13107
by: Ashwin Kambli | last post by:
Hi, I am trying to write a Windows Service application using C#. I wrote a very trivial example (logs messages during Start and Stop events to the evenlog). I have no problem installing it (using installutil.exe). But, when I try to start the service it times out and gives me a "Error: 1053 The service did not respond to the start or control request in a timely fashion." message. Whats strange is that I have no problem starting up this...
4
2057
by: Claire | last post by:
Hi, I know this isn't strictly C# language related, but my service IS written in c# and I checked out the list of microsoft newsgroups for win2000 and couldn't really see one that applies. I'm trying to test my service on a remote win2000 server machine, accessing the machine as user "administrator" on remote desktop. Im just at the install stage and using the installutil.exe to register the service on the server. The install appears to...
1
1646
by: Daniel | last post by:
what exact registry entries does the installing of a .net windows service create? either with installutil or with a deployment project.
11
5781
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified I am in the same folder my program is in (MyService.exe). I assume it has to do with Logon Credentials.
0
2646
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
5
13418
by: SiD` | last post by:
when starting a windows service writte in vb.net, a messagebox appears: cannot start service from the command line or a debugger. A windows service must first be installed using installutil.exe and then startede with the serverexpl, windows services or the NET START command. tryed also installing with installutil: it says there is no install packs. how can I make my service work in design mode and in normal runtime mode?
0
4848
by: Anonieko Ramos | last post by:
Self Installing Service Enter a topic name to show or a new topic name to create; then press Enter .. Start by writing a service. This involves deriving a class from System.ServiceProcess.ServiceBase and overriding a few methods. It's detailed in the documentation. Once you have your service written, you'll need to add an installer
1
1756
by: Eoin | last post by:
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...
15
2441
by: =?Utf-8?B?RWxpb3Ro?= | last post by:
I try to install Windows Services but it show this error during the installation process, "Insufficient System resources exist to complete the requested service." I created this Services in VB 2005. I has other Windows Services installed on this machine. I try to install in other computer with the same specification and its is OK. Specification
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.