473,545 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Service starts on WinXP but not Win2K

I wrote a C# windows service and it will install on Win2K but won't
start. I have code in it to write to the event log but it doesn't log
anything.

I developed it on WinXP with VS and it installs and runs fine on that
WinXP system. The service is a C# remoting listener if that makes any
difference.

Does it have to be built on a Win2K box to work correctly? I don't
have VS installed anywhere but that WinXP so I can't readily test
this.

Dave Lewis
Nov 16 '05 #1
1 1602
Hi,

Check the services' account (ProcessInstall er.Account). If it's set to
"NetworkService " it won't be able to start because Win2K doesn't have such
an account. I came across the same kind of problem and this "solved" it.

Erik

"Dave" <sp******@tpsd. com> wrote in message
news:a8******** *************** *@posting.googl e.com...
I wrote a C# windows service and it will install on Win2K but won't
start. I have code in it to write to the event log but it doesn't log
anything.

I developed it on WinXP with VS and it installs and runs fine on that
WinXP system. The service is a C# remoting listener if that makes any
difference.

Does it have to be built on a Win2K box to work correctly? I don't
have VS installed anywhere but that WinXP so I can't readily test
this.

Dave Lewis

Nov 16 '05 #2

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

Similar topics

1
1339
by: Sam Johnson | last post by:
Hi I developed a VB .net service under winxp and everything (running, installation, etc.) works fine. Now, I wanted to install it under win2k (with admin rights), but the installation fails (german): An exception occurred during the Install phase. System.ComponentModel.Win32Exception: Der Kontenname ist unzulässig oder nicht...
3
2089
by: Matthew P. Seltzer | last post by:
All- This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given what I have copied into my WinSXS folder, would I be able to use a combination of assembly manifests and isolated Win32 assemblies to do this? ...
3
2200
by: Brad Jones | last post by:
Hello, I'm hoping someone can give me some help or guidance here. I'm not sure if this is even the best group to post to for this. Our OEM equipment's software architecture relies heavily on a "master" windows service. This responsibility of this service is to launch 10 or so other applications, some of which have GUI's. These applications...
3
1589
by: invinfo | last post by:
After having MySQL 3.23 installed, I upgraded to 5.0, but having problems with the service. I did not do a full uninstall and its not clear, if I should have or not. However as many Windows (WinXP) users know, the existing service needs to be modified and point to the new MySQL. I was able to use 'sc' to modify the service, and even...
6
2821
by: Frank Meng | last post by:
Hi. Can system service identify current active user with .net? I need current active user's logon name from system service. I tried WindowsIdentity.GetCurrent().Name and it gave me "NT AUTHORITY\SYSTEM" even I did logon. Thank you for your help in advance. Frank
1
314
by: Dave | last post by:
I wrote a C# windows service and it will install on Win2K but won't start. I have code in it to write to the event log but it doesn't log anything. I developed it on WinXP with VS and it installs and runs fine on that WinXP system. The service is a C# remoting listener if that makes any difference. Does it have to be built on a Win2K...
0
1070
by: Alexander Stojakovic | last post by:
Werte Kollegen! I have a ASP.NET page authenticating via Integrated Security. For some reason the behaviour on the client is differing depending on the OS. I have some clients using WinXP and some using Win2K, all of them having IE6 with the latest updates and all of them having 'User Authentication' set to 'Prompt for user name and...
5
2864
by: Andrew | last post by:
Hey all, Requesting help from the VB.Net gurus in here. I was given a task to write a Windows Service (VB.Net) that would run an external program, and if that program closed for any reason (other than the service being stopped) it would restart it. I have written the service to do just this, and for testing purposes I am running the...
1
1495
by: ERobishaw | last post by:
A windows service I've created runs on all boxes except Windows 2000 server. The windows service initializes (i.e., the Service:ServieBase class gets constructed), but the OnStart() method never fires. On the same server, I have another service I've created which runs just fine. Both services were installed using the Windows Installer,...
0
7475
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
7409
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
7921
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5982
agi2029
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4958
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
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1900
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
1
1023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
720
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.