Rob Meade
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.FileN otFoundExceptio n: 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\Micr osoft.NET\Frame work\v1.1.4322> installutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visua l Studio Projects\ScanFo lder\bin\ScanFo lder.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
Subscribe Reply
3 3791
Chris Botha
Put quotes around the path, thus
installutil "C:\Documen ts and Settings\ ......"
and give it a shot.
"Rob Meade" <ro********@N O-SPAM.kingswoodw eb.net> wrote in message
news:Wy******** ***********@new s-text.cableinet. net...
Hi all,I've just followed an article regarding the creation of a windowsservice - 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.FileN otFoundExceptio n: File or assembly name Documents, or oneof its
dependencies, was not found..
The following is what I'm trying to run from the command prompt:C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322> installutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visua l StudioProjects\ScanFo lder\bin\ScanFo lder.exeInitially 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 itlives 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
Rob Meade
"Chris Botha" wrote ...
Put quotes around the path, thus
installutil "C:\Documen ts 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
Rob Meade
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
2173 InstallUtil: custom options 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 installers used within an assembly may recognize other options. To learn about these options, run InstallUtil with the paths of the assemblies .NET Framework |
3 1081 Problems using InstallUtil.exe on my Service 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, then I configured the properties of the installers When I run InstallUtil on the executable, it fails with the following message "An exception... C# / C Sharp |
4 2046 Problems installing service 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 trying to test my service on a remote win2000 server machine, accessing the machine as user "administrator" on remote desktop. Im just at the install... C# / C Sharp |
927 Problems installing service on win2000 machine 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 in event log, but when we go into the services list it's not listed. Doing a search through the registry, there's no sign of it there either. Dot... C# / C Sharp |
2616 Enterprise Library deployment problem. Why needs to InstallUtil DLLs to the deployment server? If not, Registry Error whould shown. 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 any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the... ASP.NET |
2 2047 Windows services using VS2003 problems 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 seems that is the case if you you try to change the service name (which it wants to force as Service1). If you change the name, it installs OK and... ASP.NET |
5 6194 .NET Installutil.exe problems 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 don't get prompted. Here is an example of my script. No matter what I still get prompted. Does anyone have any Ideas? ... Visual Basic .NET |
3 1257 Problems with InstallUtil on FW1.1 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); - Create the ServiceInstaller; - Imported a .dll in the solution (which is the logic of my application); - Build the solution using MSBee to target... C# / C Sharp |
4 3691 Install several services using MSI (setup project) 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. C# / C Sharp |
7398 Changing the language in Windows 10 by: Hystou |last post by: Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language... Windows Server |
7752
Discussion: How does Zigbee compare with other wireless protocols in smart home applications? by: tracyyun |last post by: Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the... General |
5969
AI Job Threat for Devs by: agi2029 |last post by: Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then... Career Advice |
4944 Couldnt get equations in html when convert word .docx file to html file in C#. by: conductexam |last post by: I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert... C# / C Sharp |
3449 Trying to create a lan-to-lan vpn between two differents networks by: TSSRALBI |last post by: Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in... Networking - Hardware / Configuration |
3441 Windows Forms - .Net 8.0 by: adsilva |last post by: A Windows Forms form does not have the event Unload, like VB6. What one acts like? Visual Basic .NET |
1 1878 transfer the data from one system to another through ip address by: 6302768590 |last post by: Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system C# / C Sharp |
1 1013
How to add payments to a PHP MySQL app. by: muto222 |last post by: How can i add a mobile payment intergratation into php mysql website. PHP |
701
Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy by: bsmnconsultancy |last post by: In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating... General |