Board index » cppbuilder » can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))

can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))

Hi
I'm using BCB5 and IIS5 and created an in process ActiveX control.
I've registered it but whenever I try to access it using a browser via the
localhost I get:
(my url is http://localhost/sms.asp)

=================================

Error Type:
Active Server Pages, ASP 0241 (0x80004005)
The CreateObject of '(null)' caused exception C0000005.
/sms.asp

====================

Here is my ASP file:

====================

<HTML>
<BODY>
<TITLE> Testing C++Builder ASP </TITLE>
<CENTER>
<H3> You should see the results of your C++Builder Active Server method
below </H3>
</CENTER>
<HR>
<%
   Set CBuilderASPObj = Server.CreateObject("ASP.SMS")
   Set CBuilderASPObj = Nothing
%>
<HR>
</BODY>
</HTML>

I can't even create the object!!!!

Can anyone help?

Thanks

Tim

 

Re:can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))


Are you using BCB5 or 6?  If so, did you use the "Active Server Object"
wizard?

Gambit

Quote
"Tim Chemaly" <cypherstu...@xsinet.co.za> wrote in message

news:3de29278@newsgroups.borland.com...
Quote
> Error Type:
> Active Server Pages, ASP 0241 (0x80004005)
> The CreateObject of '(null)' caused exception C0000005.
> /sms.asp

Re:can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))


Hi Remy
I used BCB5
First created a new ActiveX Library
and then an Active Server Object Wizard.
I selected the Object Context option.

Incidently is it impossible to access Automation Object via ASP? Does it
have to be an Active Server Object?

Bye
Tim

"Remy Lebeau (TeamB)" <gambi...@yahoo.com> wrote in message
news:3de29422@newsgroups.borland.com...

Quote
> Are you using BCB5 or 6?  If so, did you use the "Active Server Object"
> wizard?

> Gambit

> "Tim Chemaly" <cypherstu...@xsinet.co.za> wrote in message
> news:3de29278@newsgroups.borland.com...

> > Error Type:
> > Active Server Pages, ASP 0241 (0x80004005)
> > The CreateObject of '(null)' caused exception C0000005.
> > /sms.asp

Re:can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))


It should be, yes.  An Active Server Object is specifically designed for use
with ASP.

Gambit

Quote
"Tim Chemaly" <cypherstu...@xsinet.co.za> wrote in message

news:3de29891@newsgroups.borland.com...
Quote
> Incidently is it impossible to access Automation Object
> via ASP? Does it have to be an Active Server Object?

Re:can't create activeX object in ASP (Active Server Pages, ASP 0241 (0x80004005))


C0000005 is an access violation.  Double-check your use of pointers and
memory to ensure that you're not trying to access any memory you shouldn't
be.

Gambit

Quote
"Tim Chemaly" <cypherstu...@xsinet.co.za> wrote in message

news:3de3144f@newsgroups.borland.com...
Quote
> Any ideas why I get this message on an active server object?

Other Threads