473,385 Members | 2,015 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,385 software developers and data experts.

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 15311
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********@nospam.net
"Bryan" <br*********@hotmailX.comX> wrote in message
news:ud**************@TK2MSFTNGP12.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********@optonline.net> wrote in message
news:%2****************@TK2MSFTNGP10.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********@nospam.net
"Bryan" <br*********@hotmailX.comX> wrote in message
news:ud**************@TK2MSFTNGP12.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
serviceProcessInstaller's account set to "LocalSystem". 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
ProjectInstaller.cs, we added the following code in the
InitializeComponent() function:

String ComputerName = "";
try
{
RegistryKey rkey =
Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentC ontrolSet\\Control\\Comput
erName\\ComputerName");
ComputerName = (String)rkey.GetValue("ComputerName", "unknown");
} catch(Exception e) {
System.Console.WriteLine("Error retrieving Computer Name from local
registry. " + e.Message);
}

this.serviceProcessInstaller1 = new
System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account =
System.ServiceProcess.ServiceAccount.User;
this.serviceProcessInstaller1.Password = "somepassword";
this.serviceProcessInstaller1.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*********@hotmailX.comX> wrote in message
news:ud**************@TK2MSFTNGP12.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
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...
6
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...
2
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...
16
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...
1
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...
2
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...
1
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...
3
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). ...
10
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...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...

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.