p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_cdo thread: RE: The event class for this subscription is in an invalid partition - Please help!


Message #1 by "Siegfried Weber" <sweber@c...> on Wed, 5 Mar 2003 08:53:08 +0100
1. Try to replace "CreateObject" with "Server.CreateObject"
2. Your originator does not contain a valid SMTP address

Beside of that I believe it should work although I never used Windows XP
Personal Web Server for such a task but rather a real server (Windows
2000/2003).

<Cheers:Siegfried runat=3D"server" />

Development Lead,

CDOLive LLC - The Microsoft Messaging and Collaboration Application
Experts
http://www.cdolive.com


> -----Original Message-----
> From: Andrew Powell [mailto:andy@r...]
> Sent: Tuesday, February 25, 2003 6:55 PM
> To: ASP CDO
> Subject: [asp_cdo] The event class for this subscription is
> in an invalid partition - Please help!
>
>
> Hi all,
>
>   I've searched Microsoft's site with no luck, and Google led
> me here,
> since there are a couple similar problems posted with no
> solutions.  So
> here goes.  First, this is IIS 5 running on WinXP Pro. 
> Here's my code:
>
> <!--METADATA TYPE=3D"typelib"
> UUID=3D"CD000000-8B95-11D1-82DB-00C04FB1625D"
> NAME=3D"CDO for Windows 2000 Library" -->
> <!--METADATA TYPE=3D"typelib"
> UUID=3D"00000205-0000-0010-8000-00AA006D2EA4"
> NAME=3D"ADODB Type Library" -->
> <%@ LANGUAGE=3DVBScript %>
> <%
> DIM dataConn, RS, sqlText, RSMail, strSubject, strBody, strRecip,
> tmpEDate, tmpNDate, iBp, Flds, MailConf
> Set dataConn =3D Server.CreateObject("ADODB.Connection")
> (dataConn string removed)
> SET RS =3D Server.CreateObject("ADODB.Recordset")
> sqlText =3D "SELECT * FROM (table) WHERE RSID =3D '"&
> Request.Form("RSID")
> &"'"
> SET RS =3D dataConn.EXECUTE(sqlText)
> IF RS.BOF AND RS.EOF THEN
>   (outputs error msg)
> ELSE
>   strSubject =3D "Password Retrieval"
>   strBody =3D "password message goes here"
>   strRecip =3D RS("RSUEmail")
>   Set RSMail =3D CreateObject("CDO.Message")
>   Set MailConf =3D CreateObject("CDO.Configuration")
>   Set Flds =3D MailConf.Fields
>   Flds(cdoSendUsingMethod)  =3D cdoSendUsingPort
>   Flds(cdoSMTPServer)       =3D "129.44.191.61"
>   Flds(cdoSMTPServerPort)   =3D 25
>   Flds(cdoSMTPAuthenticate)     =3D cdoAnonymous ' 0
>   Flds.Update
>   With RSMail
>    Set .Configuration =3D MailConf
>        .To          =3D strRecip
>        .From        =3D "RockStorm.com"
>        .Sender      =3D "Admin@R..."
>        .Subject     =3D strSubject
>        .TextBody    =3D strBody
>        .Send
>   End With
>   SET RSMail =3D Nothing
> END IF
> %>
>
> Now, the really wierd part is that when I retrieve passwords
> (i.e. when
> Request.Form("RSID") equals) for two accounts, it works, but
> all other
> user account display the error below:
>
> Error Type:
> (0x8004020F)
> The event class for this subscription is in an invalid partition
> /RS/ForgotPass.asp, line 40
>
> Where line 40 is the .Send line, 5 lines from bottom of code above.
>
> Any/all help is hugely appreciated!  Thanx.
>
>   --afpjr
>

  Return to Index