Results 1 to 4 of 4

Thread: Problem installing windows service

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Location
    Adelaide, South Australia
    Posts
    2

    Problem installing windows service

    I am trying to install my windows service. When I run the install util as follows I get the error below. Please let me know what I am going wrong.



    C:\WINNT\Microsoft.NET\Framework\v1.1.4322>InstallUtil.exe C:\Documents and Settings\jeffrey\Desktop\WindowsServiceExample\WindowsServiceExample\bin\WindowsServiceExample.exe




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

  2. #2
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215
    First, change directory to where your windows service reside: eg. from the command prompt
    Code:
    cd C:\Documents and Settings\jeffrey\Desktop\WindowsServiceExample\WindowsServiceExample\bin\
    Next, if you are using the cmd.exe shortcut provided by VS.NET during installation, just type:
    Code:
    installutil  WindowsServiceExample.exe
    Otherwise, set path to the folder where installutil.exe resides.

    Hope it will help.

  3. #3
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    Aren't you supposed to put the file name in quotes? That's how I've always done it, not sure if it matters....

    InstallUtill "C:\MyService.exe"
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  4. #4
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215
    You don't need the quotes. Just type as in my example.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width