473,513 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows services using VS2003 problems

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 sort of works. But if you try to uninstall it, it
says you are missing something.

C:\Documents and Settings\tsich>installutil \u
"c:\vsprojects\emailservice\bin\emailservice.e xe"
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 u, or one of its
dependen
cies, was not found..

C:\Documents and Settings\tscheiderich>

This is impossible since, I just installed it. I ran the installutil -
which installed fine. I then do an F3 to get exactly the same line back
arrow back to just after the InstallUtil and add the \u you see above and it
says it is missing something???????

If I now F3 again, and take out the /u or choose the original one, it won't
install again, saying that it already exists.

This is driving me nuts.

You can't keep the Service1 or you can't create another service as your
install will tell you Service1 already exists.

How do you get around this?

Thanks,

Tom
Nov 19 '05 #1
2 2046
On Mon, 3 Oct 2005 16:45:59 -0700, "tshad"
<ts**********@ftsolutions.com> wrote:

C:\Documents and Settings\tsich>installutil \u
"c:\vsprojects\emailservice\bin\emailservice.ex e"
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 u, or one of its
dependen
cies, was not found..


Make sure to use a forward slash, i.e. installutil /u assemblyname

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #2

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:82********************************@4ax.com...
On Mon, 3 Oct 2005 16:45:59 -0700, "tshad"
<ts**********@ftsolutions.com> wrote:

C:\Documents and Settings\tsich>installutil \u
"c:\vsprojects\emailservice\bin\emailservice.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 u, or one of its
dependen
cies, was not found..


Make sure to use a forward slash, i.e. installutil /u assemblyname


That was it.

Not sure how I missed it.

Thanks,

Tom
Nov 19 '05 #3

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

Similar topics

0
2877
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
6
1808
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows 2000 server and have 'secure' network access? I would love to use VS.NET to access both windows and Unix/Linux xml files.
2
4472
by: Joe | last post by:
In all of my C#/Net 1.1 services (VS2003), I always have dual mode functionality. By passing a specific command line argument, the service would run in Console mode as a Console App instead of as a service. This always worked well!! However, the Windows Service in NET 2.0 (VS2005) is structured completely different, and I'm unsure how to...
6
595
by: Chris Marsh | last post by:
All I have a database table, changes to the data within which I am interested in acting on. The approach that I'm taking is to have the database update a file every time data is updated. This process is outside my domain - I can rely on the file being updated when data changes. Within my domain is the design of a Windows service to...
3
2030
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
We use SQL Server 2000 We user VS 2005 How can we use SQL Server reporting Services? Thanks,
5
2284
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
This code works fine in Windows Application. In Windows Application, I am able to zip the image files properly and it totally contains 900MB My problem is the same code which I used in my Windows Application, does not work while I run it with Windows services. In my Windows application I am able to zip the whole 900Mb without any problems,...
2
2761
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= | last post by:
I've seen a ton of posts about similar problems, but none of the solutions were effective. I've been maintaining this VB code for 3 years, and this is the first time this has happened. It seems that the first one or two breakpoints encountered trigger, but after that, none of my other breakpoints work. Also, when the breakpoints stop...
5
3272
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
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...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7542
tracyyun
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...
0
4756
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...
0
3248
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...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
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...

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.