473,382 Members | 1,622 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,382 software developers and data experts.

Problems using InstallUtil

Hi all,

I've just followed an article regarding the creation of a windows service -
so far so good - right up until I try to do the install...

I get the following error message in the command prompt:

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name Documents, or one of
its
dependencies, was not found..
The following is what I'm trying to run from the command prompt:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>insta llutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visual Studio Projects\ScanFolder\bin\ScanFolder.exe
Initially I had problems with the installutil thing saying it was a
recognised something or other, then it occured to me that I was trying to
run that from any old directory - hence changing the path to where it lives
in the Microsoft.Net directory.

Can anyone help me with this - I really want to know if the example I've
just been working on is going to work :)

Regards

Rob
Nov 18 '05 #1
3 3783
Put quotes around the path, thus
installutil "C:\Documents and Settings\ ......"
and give it a shot.

"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:Wy*******************@news-text.cableinet.net...
Hi all,

I've just followed an article regarding the creation of a windows service - so far so good - right up until I try to do the install...

I get the following error message in the command prompt:

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name Documents, or one of its
dependencies, was not found..
The following is what I'm trying to run from the command prompt:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>insta llutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visual Studio Projects\ScanFolder\bin\ScanFolder.exe

Initially I had problems with the installutil thing saying it was a
recognised something or other, then it occured to me that I was trying to
run that from any old directory - hence changing the path to where it lives in the Microsoft.Net directory.

Can anyone help me with this - I really want to know if the example I've
just been working on is going to work :)

Regards

Rob

Nov 18 '05 #2
"Chris Botha" wrote ...
Put quotes around the path, thus
installutil "C:\Documents and Settings\ ......"
and give it a shot.


Hi Chris,

Thanks for the reply, I got it working in the end by copying me .exe into
the microsoft.net folder etc and running from there - I'll give your idea a
go on the next build...cheers :o)

Rob
Nov 18 '05 #3
As above Chris - many thanks (although I did have to change the permissions
on my directory to get the service to start etc)..

Thanks again

Rob
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike R | last post by:
I have 2 questions about custom options in InstallUtil. The help screen for InstallUtil says this: --- quote --- Options take the form /switch= <...a list of options follows...> Individual...
3
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service,...
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...
0
by: Claire | last post by:
Ive built a service using visual studio c#. I'm trying to install the service on a win 2000 server machine using installutil.exe logged in as administrator. We get no errors from installutil, or...
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...
2
by: tshad | last post by:
I have been running into all kinds of problems with VS2003 and handling Windows services. One of the main problems is trying to uninstall services. It doesn't work half the time. Mainly it...
5
by: Jamin Mace | last post by:
I'm trying to create a batch script that will allow me to use the .Net installutil.exe to install a windows service. I want to be able to specify the username and pasword in my script so that I...
3
by: Giulio Petrucci | last post by:
Hi there, I have to installa a Windows service on a machine which has only the fw1.1 installed. I did the following: - Create a WindowsService application (using the VisualStudio template); -...
4
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, I continue with installation. I create three windows services. Each service has a Installer class.
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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.