Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Server object error 'ASP 0177 : 80004005'

Thread Tools

Server object error 'ASP 0177 : 80004005'

Lars Schouw
Posts: n/a
When I run an ASP script I have I get this error in the browser:

Server object error 'ASP 0177 : 80004005'

Server.CreateObject Failed

/Gateway/gmticket/gmtickethelper.asp, line 114

Unspecified error


The ASP code looks like this:

function initialize
initialize = false
set myagent = server.createobject(classid_agent)
'response.write( classid_agent )
'response.write( "initialize called")
valid_user = myagent.create(session("context"))
set myagent = nothing
if valid_user = 0 then exit function
gvar_mycompid = request("mycompid")
gvar_myclassid = request("myclassid")
'response.write( gvar_myclassid )

set gvar_oreport= server.createobject(gvar_myclassid)
' DOTO: hack since GMTicket.JGBond does not work.
'set gvar_oreport= server.createobject("GMTicket.JGBond.1")
'Response.write (gvar_oreport.GetContent())

if gvar_oreport.setowner(session("user_id")) = 0 then
response.write("unknown error: failed to initialize server.")
set gvar_oreport = nothing
exit function
end if
initialize = true
end function

The object name GMTicket.JGBond will be passed intop the createobject call.
When I do this GMTicket.JGBond.1 it works!

I also tried this from C++ and confirmed that it works:
// testGateway20.cpp : Defines the entry point for the console application.

// #include <afxdisp.h>
#include "stdafx.h"
#include "../Gateway20/Gateway20.h"
#include "../GMTicket/GmTicket.h"

int main(int argc, char* argv[])
long nAnswer;

HRESULT hr = CoInitialize(NULL);
if( SUCCEEDED(hr) )
CComPtr<ITicket> pObj;
hr = pObj.CoCreateInstance(OLESTR("GMTicket.JGBond.1")) ;
if( SUCCEEDED(hr) )
int iRet;
hr = pObj->IsEof(&iRet);
if( SUCCEEDED(hr) )
printf("IsEof call succeeded\n");
Reply With Quote
Aaron Bertrand [MVP]
Posts: n/a
> Server object error 'ASP 0177 : 80004005'

Aaron Bertrand
SQL Server MVP

Reply With Quote
Lars Schouw
Posts: n/a
After some more debugging I found out that I some times pass in an
empty string to the Server.CreateObject call.
I managed to check for that so that I at least get an error message

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Type: Server object, ASP 0177 (0x800AEA5F) 800aea5f jeevan ASP General 1 12-22-2007 02:14 PM
Error Type: Server object, ASP 0177 (0x800AEA5F) 800aea5f Kevin G. ASP General 2 11-28-2006 05:36 PM
Server object, ASP 0177 (0x8007000E) Ran out of memory Umashankar ASP General 2 02-06-2004 03:24 PM
Error: Server object, ASP 0177 (0x800401F3) ..:: SOS ::.. Nikhil Kumar Desai ASP General 7 12-22-2003 05:18 PM
Server object, ASP 0177 (0x800401F3) Austin ASP General 1 09-25-2003 01:10 PM