Error installing Windows Services on Windows Server 2003

G

Guest

I try to install Windows Services but it show this error during the
installation process, "Insufficient System resources exist to complete the
requested service."

I created this Services in VB 2005.

I has other Windows Services installed on this machine. I try to install in
other computer with the same specification and its is OK.

Specification
OS: Windows Server 2003 Standard Edition
RAM: 4GB
CPU: Double CPU Xeon 3.60GHz
HD: with 27.8GB of free spaces

Thanks for your help.
 
M

Mr. Arnold

Elioth said:
I try to install Windows Services but it show this error during the
installation process, "Insufficient System resources exist to complete the
requested service."

I created this Services in VB 2005.

I has other Windows Services installed on this machine. I try to install
in
other computer with the same specification and its is OK.

Specification
OS: Windows Server 2003 Standard Edition
RAM: 4GB
CPU: Double CPU Xeon 3.60GHz
HD: with 27.8GB of free spaces

Thanks for your help.

My best guess is that you have something running that's taking up System
resources errantly, a memory leak in a program or something like that.

Anti Virus solutions and things like that while running can be causing
problems.

You should shutdown everything that's not needed that's running on the
computer like AV's, Spyware detection things like that to free up System
resources.

Also check the Virtual Page file size it may be too low for the amount of
physical memory that computer has, which could be causing problems.
 
G

Guest

Mr. Arnold said:
My best guess is that you have something running that's taking up System
resources errantly, a memory leak in a program or something like that.

Anti Virus solutions and things like that while running can be causing
problems.

You should shutdown everything that's not needed that's running on the
computer like AV's, Spyware detection things like that to free up System
resources.

Also check the Virtual Page file size it may be too low for the amount of
physical memory that computer has, which could be causing problems.
I do all that but the it gave me the same error. Any other suggestion?
Thanks for you help.
 
M

Mr. Arnold

I do all that but the it gave me the same error. Any other suggestion?
Thanks for you help.

Are you using the Installutil to install the service or some other method?
 
M

Mr. Arnold

Elioth said:
I am using the Setup Project of VB2005

You should try the Service Installutil.exe to see if that buys you anything,
look it up on Google on how to use it. You may need to take the other
install stuff out if it's part of the project and simply build the project
to get the Servicename.exe so that you use that exe with Installutil at the
Command Prompt.
 
G

Guest

Thanks Mr. Arnold for you help.

I try with InstallUtil but it fail. This is the log.

Installing assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Installing service EVERCH_OutgoinFiles...
Service EVERCH_OutgoinFiles has been successfully installed.
Creating EventLog source EVERCH_OutgoinFiles in log Application...
Rolling back assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Restoring event log to previous state for source EVERCH_OutgoinFiles.
Service EVERCH_OutgoinFiles is being removed from the system...
Service EVERCH_OutgoinFiles was successfully removed from the system.

Thanks for you help.
 
M

Mr. Arnold

Elioth said:
Thanks Mr. Arnold for you help.

I try with InstallUtil but it fail. This is the log.

Installing assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Installing service EVERCH_OutgoinFiles...
Service EVERCH_OutgoinFiles has been successfully installed.
Creating EventLog source EVERCH_OutgoinFiles in log Application...
Rolling back assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Restoring event log to previous state for source EVERCH_OutgoinFiles.
Service EVERCH_OutgoinFiles is being removed from the system...
Service EVERCH_OutgoinFiles was successfully removed from the system.

Thanks for you help.

Well, what's in the log?

logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
 
G

Guest

This is the log.

Installing assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Installing service EVERCH_OutgoinFiles...
Service EVERCH_OutgoinFiles has been successfully installed.
Creating EventLog source EVERCH_OutgoinFiles in log Application...
Rolling back assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Restoring event log to previous state for source EVERCH_OutgoinFiles.
Service EVERCH_OutgoinFiles is being removed from the system...
Service EVERCH_OutgoinFiles was successfully removed from the system.

Thanks for help.
 
M

Mr. Arnold

Elioth said:
This is the log.

Installing assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Installing service EVERCH_OutgoinFiles...
Service EVERCH_OutgoinFiles has been successfully installed.
Creating EventLog source EVERCH_OutgoinFiles in log Application...
Rolling back assembly 'E:\CopyFileApp\EVERCH_OutputFiles.exe'.
Affected parameters are:
logtoconsole =
assemblypath = E:\CopyFileApp\EVERCH_OutputFiles.exe
logfile = E:\CopyFileApp\EVERCH_OutputFiles.InstallLog
Restoring event log to previous state for source EVERCH_OutgoinFiles.
Service EVERCH_OutgoinFiles is being removed from the system...
Service EVERCH_OutgoinFiles was successfully removed from the system.

Thanks for help.

Even though that other install is failing are you sure it didn't somehow
list the Service? If it is listed in the Services, then you have to get it
uninstalled.

Or there is something wrong with the assembly itself are you sure you have
not left anything in that assembly dealing with the other install. If
something is there from that other install remove it out of the project.

Have you checked the registry to see if something is in the register?

Have you checked the O/S event logs to see if there are error messages,
because the log you have posted, really doesn't show why it stopped and
rolled back.

For future reference, if the Service is installed by Installutil, then to
install a newer assembly, you must Installutil exe -u to uninstall the old
one.
 
G

Guest

Mr. Arnold said:
Even though that other install is failing are you sure it didn't somehow
list the Service? If it is listed in the Services, then you have to get it
uninstalled.

Or there is something wrong with the assembly itself are you sure you have
not left anything in that assembly dealing with the other install. If
something is there from that other install remove it out of the project.

Have you checked the registry to see if something is in the register?

Have you checked the O/S event logs to see if there are error messages,
because the log you have posted, really doesn't show why it stopped and
rolled back.

For future reference, if the Service is installed by Installutil, then to
install a newer assembly, you must Installutil exe -u to uninstall the old
one.
I checked all and I see everything is OK. I make a new Services application
to make a test and it fail with the same error.

The services not is in Services List, no event log in the OS, no registry.

If you have another suggestion please let me know. Thanks so much for you
help.
 
M

Mr. Arnold

LOOK **** at that point above, it installed the service.


LOOK ******* at that point, it's trying to create the Eventlog in the O/S's
Application Event log area.

LOOK ***** What's happening with the Eventlog?

Do you have some part of the project that you're doing a custom Eventlog,
something you have added to the project to create the eventlog?

You can create the Eventlog on the fly when the Service starts, without
using some special project stuff.

Is the problem in the area of the Eventlog creation?
 
G

Guest

Yes, I have a Function to write a log in the Event Log. In the function I
check if the Log exists, if not I create it. Below the code of the Function.

************************************************
Private Sub WriteLog(ByVal sMsg As String, Optional ByVal iEventLogEntry As
EventLogEntryType = EventLogEntryType.Information)

'Check if the Event Log Exists

If Not Diagnostics.EventLog.SourceExists("EVERCH_OutgoingFiles") Then

Diagnostics.EventLog.CreateEventSource("EVERCH_OutgoingFiles", "EVERCH
Outgoing Files Log") 'Create Log

End If

'Write to the log
Diagnostics.EventLog.WriteEntry("EVERCH_OutgoingFiles", sMsg, iEventLogEntry)

'****** IF ERROR, SEND E-MAIL *****
If iEventLogEntry = EventLogEntryType.Error Or iEventLogEntry =
EventLogEntryType.FailureAudit Or iEventLogEntry = EventLogEntryType.Warning
Then

'Send email with the problem description
SendEmail("EVERCH Outgoing Files Services", iEventLogEntry.ToString & "
found in EVERCH Outgoing Files Services at " & Now & vbCrLf & "Err desc.: " &
_ sMsg, "Technical Group")

End If

End Sub
********************************************************

I trying to install it services in the same folder of other services I has

Thank for you help and time.
 
M

Mr. Arnold

Elioth said:
Yes, I have a Function to write a log in the Event Log. In the function I
check if the Log exists, if not I create it. Below the code of the
Function.

Just a little tip here on the Eventlog creation, it should be done at the
service start-up one time only.

The creation of the Event Log should not be checked and/or try to create the
log every time WriteLog is called. Once the Event Log for an application is
created, it's there permanently, until it's deleted out of the registry
either manually or programmically.

What I didn't see was the EventLog.Source statement that ties the Service to
the log, in your code.

But the question is this. In installing the service with IntsallUtil and you
have code in the service to create the Eventlog on the fly/(while the
service is running), then how does the InstallUtil even know about this
Eventlog and is trying to do something with installing the log?

The install of the log doesn't work and the InstallUtil is rolling it back
off of the computer system.

Do you have a EventlogInstaller as part of the project.?

It looked to me in the InstallUtil logs that the service was installed, it
proceeded to install the Eventlog, it ran into a problem, and it rolled
everything back off of the computer system, including the service.

If you're telling the service to create the log, which it will take care of
doing everything it needs to create/establish the log, the .NET Framework is
doing it, then why is InstallUtil in trying to install the service is it
doing something to create the Eventlog?

The service was installed successfully, and then there was a problem with
the Eventlog being installed that it should not be trying to install,
because you're telling the service while it's running to create the Eventlog
if it's not there.
 
G

Guest

I not haved an EventLogInstaller.
I will make a new project and Copy and Past the Code. I removed the Creation
of the EventLog in my WriteLog Function and it Install OK from the Setup
Project, but the services not in the Services List. I try to install using
the InstallUtil but it fail with the same error.

I will make the new project and I will let you know about the status.
 
G

Guest

It work.

Let me explain you what I do and what I think that cause this problem and
let me know what you think.

I make a new Window Services Project and Copy and Paste all code and it work
fine.

Before created the new project, I was make the Windows Services in the same
Solution in that I has a Windows Form and other Windows Services. When you
told me, the problem may is in the Creation of EventLog or check the
assembly, I thinked the problem maybe is in the Solution, I think it can not
contain two project of windows services.

Thanks for you help and time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top