I have an 32-bit COM+ Application. One instance taking about 200MB~ in memory. I'm using this COM-object in my ASP.NET MVC 4 Web-Application. Web-Application is 32-bit too.
It's works good enough at Debugging and at IIS 7. Problems starts when I need to create 5 and more COM instances simultaneously: it's works fine at Debugging (with IIS express. I tried about 100 instances and it worked fine too), but crashes after publish at IIS 7.
IIS 7 configs:
Web-app identity: use app pool identity (LocalSystem).
Authorization: Anonymous - use app pool indetity (LocalSystem)
In Web-App log: Retrieving the COM class factory for component with CLSID {AppID} failed due to the following error: 80080005. HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE).
Looks like it not due the access reasons. It possible to create COM-object at IIS 7, but not possible to create a lot of them simultaneously.
In COM-application log I see this: Out of system resource. So, looks like the reason is memory can't be allocated at heap. But it can be allocated when works in IIS Express.
I thought that COM+ Application is always out-of-process, like this:
But could it be inprocess like this, while hosting at IIS7?
Is it possible to fix this issue?
My OS: Windows 7 x64.
User contributions licensed under CC BY-SA 3.0