Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tired: strange run-time error with VB component and ASP

0 views
Skip to first unread message

Iwan van der Kleyn

unread,
Oct 21, 1997, 3:00:00 AM10/21/97
to

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01BCDE62.681B9290
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Sometimes I just get sooo tired.....

I've written an ActievDLL ("libASap") in VB5 (Servicepack 2) which =
contains, among others, a class to process the data from a HTML-form. =
Simple, I thought.

I wrote it in VB it in a few hours and initialized from a VB-client it =
works perfectly. The DLL is marked for unattended execution, doens not =
contain any visible elements and is compiled with the Apartment =
threading model. Implementation in ASP seemed to be a piece of cake.

Ah well. A few run-time errors. The first of which a completely baffles =
me:

IIS generates the follwing error=20

libASaP error '800a005b'=20

Object variable or With block variable not set=20

/io/docs/info.asp, line 377=20

The guilty Public method of the class module is as follows:

Public Sub AddRecip(Byval sRecip as string)

cRecipients.Add sRecip 'cRecipients is a VB Collection

End sub=20

in the ASP script it is called in the follwing manner

<%

oRec.AddRecip "ivdk...@xs4all.nl"

%>

Hardly a spectaculare piece of coding (and yes, the object variable =
*has* been set :-) , adding a string-value to a collection, but IIS =
seams to suffocate on it.

My question: WHY???

Thanks & Regards,

Iwan

* IT is a horrible creature..... *=20


------=_NextPart_000_0008_01BCDE62.681B9290
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<P>Sometimes I just get sooo tired.....</P>
<P>I've written an ActievDLL (&quot;libASap&quot;) in VB5 (Servicepack =
2) which=20
contains, among others, a class to process the data from a HTML-form. =
Simple, I=20
thought.</P>
<P>I wrote it in VB it in a few hours and initialized from a VB-client =
it works=20
perfectly. The DLL is marked for unattended execution, doens not contain =
any=20
visible elements and is compiled with the Apartment threading model.=20
Implementation in ASP seemed to be a piece of cake.</P>
<P>Ah well. A few run-time errors. The first of which a completely =
baffles=20
me:</P>
<P>IIS generates the follwing error </P>
<P>&nbsp;</P><FONT face=3DArial size=3D2>
<P><EM>libASaP</FONT><FONT face=3D"Times New Roman">&nbsp;</FONT><FONT =
face=3DArial=20
size=3D2>error '800a005b'</FONT><FONT face=3D"Times New Roman">=20
</EM></P><EM></EM></FONT><FONT face=3DArial size=3D2>
<P><EM>Object variable or With block variable not set</FONT><FONT=20
face=3D"Times New Roman">&nbsp;</EM></P><EM></EM></FONT><FONT =
face=3DArial size=3D2>
<P><EM>/io/docs/info.asp, line 377</FONT><FONT=20
face=3D"Times New Roman">&nbsp;</EM></P></FONT>
<P>The guilty Public method of the class module is as follows:</P>
<P><EM>Public Sub AddRecip(Byval sRecip as string)</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; cRecipients.Add sRecip 'cRecipients is a VB=20
Collection</EM></P>
<P><EM>End sub </EM></P>
<P>in the ASP script it is called in the follwing manner</P>
<P><EM>&lt;%</EM></P>
<P><EM>oRec.AddRecip &quot;<A=20
href=3D'mailto:ivdk...@xs4all.nl"'>ivdk...@xs4all.nl&quot;</A></EM></P>=

<P><EM>%&gt;</EM></P>
<P>Hardly a spectaculare piece of coding (and yes, the object variable =
*has*=20
been set :-) , adding a string-value to a collection, but IIS seams to =
suffocate=20
on it.</P>
<P>My question: <STRONG><FONT color=3D#ff0000>WHY???</FONT></STRONG></P>
<P>&nbsp;</P>
<P>Thanks &amp; Regards,</P>
<P>Iwan</P>
<P>&nbsp;</P>
<P>&nbsp;</P><FONT color=3D#ff0000>
<P align=3Dcenter>* IT is a horrible creature..... * </P></FONT><FONT =
face=3DTahoma=20
size=3D1>
<P align=3Dcenter>&nbsp;</P></FONT>
<P>&nbsp;</P></DIV></BODY></HTML>

------=_NextPart_000_0008_01BCDE62.681B9290--


0 new messages