System.IO.FileNotFoundException on InstallUtil

R

Random

I have written a Windows Service application, and I am trying to use
InstallUtil to install it on my local machine for testing. I am using the
logToconsole parameter and am getting a System.IO.FileNotFoundException
exception. I have references in my app, but no external files.

I did compile the service app and copy the *.exe to another directory so I
wouldn't have to type in the entire path in the InstallUitl command. Still,
I wouldn't think this would have anything to do with it. Any clues,
anyone??
 
R

recoil

I think i have heard something along the lines of maybe the files are
not actually there when you think they would. If i were you I would
download ntfilemon from www.sysinternals.com. It is a free application
that can be used to troubleshoot file access problems. After a few
moments of using it to get familiar and get the filters setup properly
you can then use it and see where and what it is attempting to look for.
 
K

Katy King

| From: "Random" <[email protected]>
|
| I have written a Windows Service application, and I am trying to use
| InstallUtil to install it on my local machine for testing. I am using
the
| logToconsole parameter and am getting a System.IO.FileNotFoundException
| exception. I have references in my app, but no external files.
|
| I did compile the service app and copy the *.exe to another directory so
I
| wouldn't have to type in the entire path in the InstallUitl command.
Still,
| I wouldn't think this would have anything to do with it. Any clues,
| anyone??

Can you please send the full InstallUtil command line that you are using,
and the full exception message? A clip of the install log would be helpful
as well.

Thanks,
Katy
 
R

Random

Thanks, but I got it covered now. Without being able to immediately resolve
this, I went ahead and ran installutil to just run on the location my
project compiled to. That revealed an install error with some extra
registry settings I was making (see seperate post). I corrected that and
now I can copy the assembly and install the service in my other directory.
 
K

Katy King

From: "Random" <[email protected]>

| Thanks, but I got it covered now. Without being able to immediately
resolve
| this, I went ahead and ran installutil to just run on the location my
| project compiled to. That revealed an install error with some extra
| registry settings I was making (see seperate post). I corrected that and
| now I can copy the assembly and install the service in my other directory.

Great. I'm glad it's working now.

Katy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top