473,385 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Error installing Service using installutil on .NET 2.0

2
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.
May 14 '07 #1
1 1735
Eoin
2
Sorry about follow on post,

What I am trying to find out is : Is this a common error thrown by Installutil as I have trawled through the code but it builds fine,etc and has no obvious errors and I cannot debug since I cannot install the service and step through to see where this is happening.

Regards
Eoin


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.
May 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
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...
4
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...
1
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
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: ...
0
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...
5
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 ...
0
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...
1
by: eoinmoon | 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...
15
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...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.