473,721 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot start Service on a server configured as a member of a workgroup

We created a Windows Service with C#. The service will start OK on
computers that are a member of a domain, but when we try to start it on a
server that is configured for a workgroup we get the following error in the
event log:

Event ID: 7001
Description: The {Service Name}service depends on the Net Logon service
which failed to start because of the following error:
The service has returned a service-specific error code.

When checking the Net Logon service, we noticed that it did not start
because of the following error in the event log:

Event ID: 3095
Description: This Windows NT computer is configured as a member of a
workgroup, not as a member of a domain. The Netlogon service does not need
to run in this configuration.

Does this mean we can't run .NET Services on any box that is not a member of
a domain?.. I sure hope not!..

Please, please, please someone give me a fix for this.

Thanks,
Bryan
Nov 15 '05 #1
3 15368
Bryan,

Without knowing more about your service and how it is setup, I don't have a
fix for the situation. I can tell you, however, that a computer running as
a member of a workgroup can indeed run .NET Windows services. We have built
many at my company.

Please send details concerning your service.
--
Jeffrey Wynn
so********@nosp am.net
"Bryan" <br*********@ho tmailX.comX> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
We created a Windows Service with C#. The service will start OK on
computers that are a member of a domain, but when we try to start it on a
server that is configured for a workgroup we get the following error in the event log:

Event ID: 7001
Description: The {Service Name}service depends on the Net Logon service
which failed to start because of the following error:
The service has returned a service-specific error code.

When checking the Net Logon service, we noticed that it did not start
because of the following error in the event log:

Event ID: 3095
Description: This Windows NT computer is configured as a member of a
workgroup, not as a member of a domain. The Netlogon service does not need to run in this configuration.

Does this mean we can't run .NET Services on any box that is not a member of a domain?.. I sure hope not!..

Please, please, please someone give me a fix for this.

Thanks,
Bryan

Nov 15 '05 #2
Well, to eliminate anything stupid we might be doing, we created an empty
service. From "New Project", I selected "Visual C# Projects" and chose
"Windows Service". After the wizard created the service I just added a
"Project Installer" and compiled it. When I tried to run it on the box that
is not a member of the domain, we got the exact same error.

Is there anything you can suggest?..

Thanks for any help!
Bryan

"Jeffrey Wynn" <so********@opt online.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Bryan,

Without knowing more about your service and how it is setup, I don't have a fix for the situation. I can tell you, however, that a computer running as a member of a workgroup can indeed run .NET Windows services. We have built many at my company.

Please send details concerning your service.
--
Jeffrey Wynn
so********@nosp am.net
"Bryan" <br*********@ho tmailX.comX> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
We created a Windows Service with C#. The service will start OK on
computers that are a member of a domain, but when we try to start it on a server that is configured for a workgroup we get the following error in the
event log:

Event ID: 7001
Description: The {Service Name}service depends on the Net Logon service
which failed to start because of the following error:
The service has returned a service-specific error code.

When checking the Net Logon service, we noticed that it did not start
because of the following error in the event log:

Event ID: 3095
Description: This Windows NT computer is configured as a member of a
workgroup, not as a member of a domain. The Netlogon service does not

need
to run in this configuration.

Does this mean we can't run .NET Services on any box that is not a

member of
a domain?.. I sure hope not!..

Please, please, please someone give me a fix for this.

Thanks,
Bryan


Nov 15 '05 #3
Ok, here is the deal... It will work if you set the
serviceProcessI nstaller's account set to "LocalSyste m". If you have it set
to user, the service will install, but it cannot be started. We are
suspecting that is why it is trying to use the NetLogon service.

The fix we came up with was to set the account to "User", and in the
ProjectInstalle r.cs, we added the following code in the
InitializeCompo nent() function:

String ComputerName = "";
try
{
RegistryKey rkey =
Registry.LocalM achine.OpenSubK ey("SYSTEM\\Cur rentControlSet\ \Control\\Compu t
erName\\Compute rName");
ComputerName = (String)rkey.Ge tValue("Compute rName", "unknown");
} catch(Exception e) {
System.Console. WriteLine("Erro r retrieving Computer Name from local
registry. " + e.Message);
}

this.servicePro cessInstaller1 = new
System.ServiceP rocess.ServiceP rocessInstaller ();
this.serviceIns taller1 = new System.ServiceP rocess.ServiceI nstaller();
//
// serviceProcessI nstaller1
//
this.servicePro cessInstaller1. Account =
System.ServiceP rocess.ServiceA ccount.User;
this.servicePro cessInstaller1. Password = "somepasswo rd";
this.servicePro cessInstaller1. Username = ComputerName + "\\someusername ";

We ran into issues between Windows NT and Windows 2000 that is why we are
having to use the local computer name... Using \\computername worked on
Windows 2000, but did not work on Windows NT. Using the physical computer
name solved the problem.

"Bryan" <br*********@ho tmailX.comX> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
We created a Windows Service with C#. The service will start OK on
computers that are a member of a domain, but when we try to start it on a
server that is configured for a workgroup we get the following error in the event log:

Event ID: 7001
Description: The {Service Name}service depends on the Net Logon service
which failed to start because of the following error:
The service has returned a service-specific error code.

When checking the Net Logon service, we noticed that it did not start
because of the following error in the event log:

Event ID: 3095
Description: This Windows NT computer is configured as a member of a
workgroup, not as a member of a domain. The Netlogon service does not need to run in this configuration.

Does this mean we can't run .NET Services on any box that is not a member of a domain?.. I sure hope not!..

Please, please, please someone give me a fix for this.

Thanks,
Bryan

Nov 15 '05 #4

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

Similar topics

2
4280
by: Robert M. | last post by:
Information: Server A: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Enterprise Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server A is going to function as a Distributor. Location: New York. Server B: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Standard Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server B is going to function as a Subscriber.
6
4078
by: aj | last post by:
I currently have 2 official DB2 Workgroup Edition licenses for my 2 v8 production servers. I also have tech support/software upgrade agreements in place for both servers. I am interested in building a separate backup/test DB2 server upon which I can experiment with impunity. This backup server will not be in production in any way, and the only person who will ever connect to it is me. It will be up and online most if not all of the...
2
3829
by: | last post by:
Hi, I'm using VS .NET 2003 edition and I had built a web project and I had been using it. But I changed a few settings(why did I ever do that...:( ) Now I'm unable to run my Web application from VS .NET. I get the error: Error while trying to run project. Unable to start debugging on the web server. The project is not
16
4213
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
1
1607
by: Jane Davis | last post by:
Hello I have a web server running ASP.Net and would like to be able to upload documents from a website on this server to a share on a seperate server (not in same domain or workgroup). Is this possible as it stands (what permissions would I need for the Share folder - I assume it uses the Network Service account) or do I need to setup a joint workgroup? Thankyou - Jane
2
2038
by: Michael D'Angelo | last post by:
We have a machine running Windows 2000 which is running a 3rd party application. We recently installed ASP.NET 2.0 on the server to install some addons for this application. When attempting to browse to an asp.net site, we get this error in the event log: "aspnet_wp.exe could not be started. The error code for the failure is 80070522. This error can be caused when the worker process account has insufficient rights to read the .NET...
1
16389
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under the user paul (pw:paul123) on the computer A in the domain ABC. This application should stop / start a service, which is running on computer B (in workgroup ABCWG (NOT IN DOMAIN ABC)). On the computer B I have a user administrator (pw: adminTest)...
3
7053
by: donnyma | last post by:
I have a problem that looks like it has not been discussed before in these groups. I have a simple SQLAgent job that runs sp_who (could be anything, but let's just say sp_who for this example). I have set the jobstep to write to an output file "T:\out.txt". If the job is owned by an admin, it runs fine and writes the output file. If it is owned by a non-admin user, it gets the following error msg: Warning: cannot write logfile...
10
2155
by: =?Utf-8?B?cm1jb21wdXRl?= | last post by:
I have Windows 2000 and recently included Internet Information Services. I then created a simple ASP file and clicked on it. The Open With dialog appears asking me to select a program. I copied an existing ASP file, test.ASP from another computer where it runs successfully. When I copied it to my computer it changed to test.ASP auto file. The other computer runs Windows XP. I am not sure is this is the issue. I verified the IIS is...
0
8837
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8728
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9130
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9059
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8005
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6668
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5977
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3187
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
2
2572
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.