Problems using Installutil to install window service.

It's the second time I see this behavior so I thing it worth publishing. Well all of the sudden using Installutil on service failed with an error about the Reflection, that don’t find any Installer type in assembly. This service already installed several times with Installutil without any problem so it's obvious (and I check it) that my assembly contain installer type. It's cleat that the service not already installed as service.

 

Nothing, but nothing seems to work. The only solution is magical rebooting (with several spells, of course). That what I found and I really will be happy if someone can come up with more practical solution.

Published Wednesday, November 26, 2003 3:00 PM by nattYGUR

Comments

# re: Problems using Installutil to install window service.

Wednesday, November 26, 2003 7:15 AM by Matt Hawley
I've had problems with this too, and its generally because I still have the Service Manager application still open. Once I close that app, the install works like a charm...is this the same case for you?

# re: Problems using Installutil to install window service.

Wednesday, November 26, 2003 8:35 AM by Ryan LaNeve
We hit a similar problem once, as well. Turned out we were using the 1.0 version of InstallUtil against a 1.1 assembly. Something else for you to check!

# re: Problems using Installutil to install window service.

Wednesday, November 26, 2003 3:00 PM by Natty Gur
Thanks Matt and Ryan,
1) Service Manager closed.
2) It happaned on machines with just 1.0 (1.1 wasnt published yet) or 1.1 (now).

# re: Problems using Installutil to install window service.

Monday, June 07, 2004 3:07 AM by gAlex
People, Help!!!
the 1.1 version says "System.IO.FileNotFoundException: there is no ... with the name Documents,..."
What a hell, I dont use the name "Documents" in my project at all.
What I have to look at?

# re: Problems using Installutil to install window service.

Monday, June 14, 2004 9:49 PM by Helper
Hi gAlex,

Does the path of your exe start with
"C:\Documents and Settings"....

if yes then try using a path without any blankspace, I think it should work.

# re: Problems using Installutil to install window service.

Monday, November 12, 2007 6:22 AM by Dolan

I got the same problem ....

Closing the Service Manager mmc application solved my problems.  Thanks Matt Hawley.

# re: Problems using Installutil to install window service.

Monday, November 19, 2007 7:28 PM by Ananda

This can happen when using the InstallUtil.exe from the wrong framework version.  For instance, if you created a .net 2.0 windows service, and ran the installutil.exe from the .NET 1.1 folder.

# re: Problems using Installutil to install window service.

Monday, December 03, 2007 2:42 PM by Rynardt

Hey guys

I've been looking for a quick and easy way to install a Windows Service using a .bat file

Thanks

# re: Problems using Installutil to install window service.

Wednesday, December 31, 2008 5:01 AM by Hyperactyve

I know it's kind of late..but the solution is very simple:

>installutil "c:\Documents and settings\ ....\service.exe"

when a path has blankspaces you have to use quotation marks.

# re: Problems using Installutil to install window service.

Tuesday, January 13, 2009 6:16 PM by Aeropostale

hyperactyve, gracias! fue de gran ayuda ese tip, ya pude instalar mi servicio.

# re: Problems using Installutil to install window service.

Wednesday, June 10, 2009 4:32 AM by Majesa

Many Thanks it works: 1000%

Problem: System.IO.FileNotFoundException

Solution: >installutil "c:\Documents and settings\ ....\service.exe"

# re: Problems using Installutil to install window service.

Friday, June 04, 2010 11:06 AM by LtCmdrData

I dont beleve how stupid I feel right now... ;) I just added the "'s around the path and service exe and it worked just fine.

Leave a Comment

(required) 
(required) 
(optional)
(required)