Link to home
Start Free TrialLog in
Avatar of Xolutionz
Xolutionz

asked on

Server.CreateObject failed on Windows 2003.

We have a web application that consists of ASP pages that instantiate an ATL COM Object to communicate with a Server application.  In our testing this is working great.  However, when it is deployed to the client server PC, which is running Windows 2003, it runs for a while and then the web server eventually crashes.  The nature of the failure is inconsistent -- sometimes the web server will simply stop responding and other times it will generate a message stating that Server.CreateObject failed (I'm waiting for the next failure to get the specific syntax of the error).  An "iisreset" command resurrects the application for a while but eventually it fails again.  Originally I thought this was due to a memory leak in our COM Object.  However, I've left it running for many hours on a Windows XP machine with multiple browsers running and making calls every few seconds.  TaskInfo indicates that memory usage is remaining unchanged and the application continues to respond even after 12 hours of usage.  It appears that the problem is environmental with the Windows Server 2003 machine.  I did find information on Microsoft.com regarding ASP/COM memory leaks but the hotfix that they prescribed is rolled into Service Pack 1, which is installed at the client site.  So I'm stumped.  Any advice is appreciated.
Avatar of NawalKishore1976
NawalKishore1976

you need the proper permission to activate the com object.

Change the settings so that the IIS will run with the Administrator account.
Avatar of Xolutionz

ASKER

If we didn't have the proper permissions in place then it seems like it would never work.  Instead, it works for a while and then quits.  The function calls within the COM Object are the same when it works and when it fails, so I don't think it's a permissions problem.  Would a permissions problem allow it to work sometimes and not others?
Following is the message that it generates when it crashes:

================================
 Server object error 'ASP 0177 : 8007000e'

Server.CreateObject Failed

Login.asp, line 101

8007000e
================================

When this occurs we must restart the web server.
This turned out to be a memory leak that I found and fixed.  Moderator: please close this thread.
This turned out to be an exception within the COM Object that was exposed only on the target machine.  It is now fixed.  This thread should be closed.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial