Link to home
Start Free TrialLog in
Avatar of bolesj
bolesj

asked on

Server.CreateObject failed - Out of memory


I am getting the following error on one of my ASP pages:


Microsoft VBScript runtime error '800a0007'
Out of memory: 'CreateObject'

i have searched and cannot find an answer that fixes my problem. I am not using any database in this page so i know its not related ot ADO. The line that throws the error reads as follows:

Set NWDir1= CreateObject("NWDirLib.NWDirCtrl.1")

I created a .vbs file and ran the exact code in a console window and had no problems. This same asp page works on my 2000 box but when i run it on 2003 server it just gives me this error.
Avatar of joeposter649
joeposter649

I suspect it's a permissions problem.  Probably NWDirCtrl has a constructor method that isn't handling the permissions error correctly.
Can you change IIS to run under your ID and see if it works?
Maybe the event logs would show the error.
Avatar of bolesj

ASKER


When you say "Can you change IIS to run under your ID and see if it works?" are you taking about

1) Authentication Methods -> "Use the following Windows user Account for anonymous access:" ?
  - or -
2) Changing the "World Wide Web Publishing Service" (service name 'w3svc')  Log On  info from Local System Account to My account?

I have tried #1 but have not tried #2.

I meant #1.  Did you check the event logs?
Probably not your problem but you should be using Server.CreateObject("NWDirLib.NWDirCtrl.1")
Avatar of bolesj

ASKER


Event logs have NOTHING !

When i use Server.CreateObject i get the following error which seems to be very similar to the fore mentioned one.

Server object error 'ASP 0177 : 8007000e'
Server.CreateObject Failed
8007000e

I even tried putting the Iuser_machine user into the Adminsitrators group and i have not seen any change.
Avatar of bolesj

ASKER


Updated IIS config to run WWW service in 5.0 isolation mode and now everything works.

WHat does this do? What does this mean as far as security and what have i done?

Points go to the person that gives me the cliff notes version and not just a link to the MS site......
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
PAQ - Refund

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

masirof
EE Cleanup Volunteer
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