This problem is related to my previous question at Maximum number of excel processes?, but with different behavior.
In short: there is a COM+ component that opens a number of excel processes when it's started. The handles are added to a list, so they don't get out of scope or garbage collected.
If I run this component locally (windows 7 64 bit, 12 Gb of memory), it starts fine and it opens 30 excel processes without a problem.
If I run this component on a (virtual) server (windows server 2003 R2 SP2 64 bit, 4 Gb), then the first 21 excel processes are started correctly, but the remaining 9 processes are not created; and in the event log I see 9 times the following error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.
So creating the last 9 excel processes result in exceptions, it seems to hit a limit of 21 excel processes.
If I try it on yet another server (Windows Server 2003 SP 2, 1 Gb RAM), it creates 22 excel processes, and 8 that fail with the same exception.
I'm wondering what is causing the excel process creation to fail on these servers?
EDIT: I can open 30 excel instances without problem if I manually open them using the start menu.
Any ideas?
Thanks, L