By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,719 Members | 1,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,719 IT Pros & Developers. It's quick & easy.

Error installing Windows Services on Windows Server 2003

P: n/a
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.
May 16 '07 #1
Share this Question
Share on Google+
15 Replies


P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:62**********************************@microsof t.com...
>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.
May 16 '07 #2

P: n/a


"Mr. Arnold" wrote:
>
"Elioth" <El****@discussions.microsoft.comwrote in message
news:62**********************************@microsof t.com...
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.

I do all that but the it gave me the same error. Any other suggestion?
Thanks for you help.
May 16 '07 #3

P: n/a

<snipped>
>>
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?
May 16 '07 #4

P: n/a


"Mr. Arnold" wrote:
>
<snipped>
>
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?
I am using the Setup Project of VB2005
May 17 '07 #5

P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:BC**********************************@microsof t.com...
>

"Mr. Arnold" wrote:
>>
<snipped>
>>
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?
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.

May 17 '07 #6

P: n/a
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.
May 17 '07 #7

P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:A9**********************************@microsof t.com...
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

May 17 '07 #8

P: n/a
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.
May 17 '07 #9

P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
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.

May 17 '07 #10

P: n/a


"Mr. Arnold" wrote:
>
"Elioth" <El****@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
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.
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.
May 18 '07 #11

P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
>

"Mr. Arnold" wrote:
>>
"Elioth" <El****@discussions.microsoft.comwrote in message
news:E5**********************************@microso ft.com...
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.
LOOK **** at that point above, it installed the service.

Creating EventLog source EVERCH_OutgoinFiles in log Application...
LOOK ******* at that point, it's trying to create the Eventlog in the O/S's
Application Event log area.
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.
LOOK ***** What's happening with the Eventlog?
Service EVERCH_OutgoinFiles is being removed from the system...
Service EVERCH_OutgoinFiles was successfully removed from the system.
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?
May 18 '07 #12

P: n/a
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_Outgoing Files") Then

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

End If

'Write to the log
Diagnostics.EventLog.WriteEntry("EVERCH_OutgoingFi les", 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.

May 21 '07 #13

P: n/a

"Elioth" <El****@discussions.microsoft.comwrote in message
news:19**********************************@microsof t.com...
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.


May 21 '07 #14

P: n/a
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.
May 21 '07 #15

P: n/a
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.
May 23 '07 #16

This discussion thread is closed

Replies have been disabled for this discussion.