PROBLEM: ASP Server.CreateObject fails with "Ran out of Memory"
The information in this article applies to:
- ASNA Visual RPG, Release 3.0 and higher
- ASP
- Web
- ActiveX
- MTS / COM+
- Windows
SYMPTOMS:
When requesting an ASP page, the ASP Server.CreateObject fails with:
Error Type:
Server object, ASP 0177 (0x8007000E)
Ran out of memory
CAUSE:
Here are the possible causes for this error:
- ASP script is attempting to instantiate your AVR ActiveX user class and there is an AVR
runtime error in the Mainline code of the user class. You have your MTS Objects in
the mainline code of your Class (VRC):
ObjectContext = AppServer.GetObjectContext()
Response = ObjectContext["Response"]
Request = ObjectContext["Request"]
Session = ObjectContext["Session"]
|
- Your AVR ActiveX Web DLL is installed and registered in the
"wwwroot" folder or a child folder in the "wwwroot".
Most likely, IIS InetInfo.exe has your DLL loaded in memory.
- Invalid or missing Acceler8DB Web Server License.
RESOLUTION:
Here are the possible resolutions:
- You will need to move your MTS Objects out of the mainline and into a Sub
Routine.
We recommend the MTSActivate Event:
BEGSR Your_Class_Name MTSActivate
ObjectContext = AppServer.GetObjectContext()
Response = ObjectContext["Response"]
Request = ObjectContext["Request"]
Session = ObjectContext["Session"]
ENDSR
|
If you build your AVR DLL with the "No User Interaction" Project setting
checked, then if you have a MSGBOX, the MSGBOX messages are automatically sent to
a log called $$AVRERR.TXT. Check the $$AVRERR.TXT file and correct the stated error.
For Example, in $$AVRERR.TXT file, you have your MTS Objects in Mainline code, this is
the error you will see:
11/20/2000 15:09:58 ERROR: Runtime error occurred in Program TESTCLASS1 at Line 12:
Object variable not set for operation.
- Here are the steps if you installed your AVR ActiveX Web DLL in the
wwwroot folder:
- Go in to IIS Manager and Unload your web application from
memory or visit Microsoft's Article: How
to Isolate a DLL.
- Un-register your AVR ActiveX Web DLL from the current location, and
move
your DLL to a folder out of the "wwwroot" folder. We recommend installing your AVR ActiveX Web DLLs in its own
folder with the "c:\program files" folder.
- Reregister your DLL with COM+ / MTS (Refer to deploying your web
application article in the More Information Section).
- Contact your ASNA Sales Executive or email the Machine Code to: codes@asna.com
to receive your Acceler8DB Web Server License.
MORE INFORMATION:
Other ASNA KB Articles:
Keywords: memory, server, CreateObject
|