Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems creatig a windows service

Status
Not open for further replies.

Sanjeet1

Programmer
Sep 4, 2003
26
US
I have a windows service. I am trying to build it so I can call it.

I tried using the command:

installutil.exe WindowsService1.exe but that did not work. Here s the ouput error message.


C:\Documents and Settings\Administrator>installutil.exe C:\TEMP SANJEET\Raj's Mu
ltihreaed App for Axolotl\bin\Debug\WindowsService1.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name TEMP, or one of its depen
dencies, was not found..

C:\Documents and Settings\Administrator>
 
If you have spaces in your path name, you need to use quotes. It is treating c:\TEMP SANJEET as c:\TEMP with SANJEET as the next part of the command.
 
OK I tried his but got another error message:

C:\>installutil.exe "C:\TEMP SANJEET\Raj's Multihreaed App for Axolotl\bin\Debug
\WindowsServce1.exe"
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name WindowsServce1.exe, or on
e of its dependencies, was not found..
 
Single quotes are also a bad idea in filenames.

And - double-check that the file is really in that directory.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top