Solved

easy question

Posted on 2001-07-24
12
223 Views
Last Modified: 2012-05-04

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/jai/addmember.asp, line 93

Invalid class string

Line 93 is:
SET myMail = Server.CreateObject("CDONTS.Newmail")







My code is:

<%

Response.Cookies("JAI").Expires = "Jan 1, 2005"
Response.Buffer = True%>

<html><title>iBuddyList.com - Member Sign-Up</title></head><body>

<table border="0" width="100%">
  <tr>
    <td width="100%"><img border="0" src="defaul1.gif"></td>
  </tr>
</table>
<table border="0" width="100%" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#4B6194" cellspacing="1">
  <tr>
    <td width="100%" bordercolor="#336699" bgcolor="#336699">
      <p align="center"><b><font face="Verdana" size="1" color="#FFFFFF">Sign up
      Now!&nbsp; | Members Login | Services | Help</font></b></td>
  </tr>
</table>
<table border="0" width="100%" height="1" cellspacing="1" cellpadding="0">
  <tr>
    <td width="100%" height="1" bgcolor="#FFFFFF" valign="baseline" colspan="2">
      <p align="center"><font face="Tahoma" size="1"><b>Welcome</b> to
      iBuddyList.com&nbsp; <b>Time:</b> 9:41pm&nbsp; <b>Date:</b> 9/16/00</font></td>
  </tr>
  <tr>
    <td width="25%" height="1" bgcolor="#15266C" valign="baseline">
      <p align="center"><b><font face="Verdana" color="#FFFFFF" size="1">What is
      iBuddyList.com?</font></b></td>
    <td width="75%" height="1" valign="top"></td>
  </tr>
  <tr>
    <td width="25%" bgcolor="#336699" height="1">
      <p align="center"><font size="1" color="#FFFFFF" face="Tahoma">iBuddyList.com
      is a great place to monitor your buddies online status without downloading
      any software. See if your buddy is online and instant message them, and
      best of all, its free!</font><p align="center">&nbsp;<p align="center">&nbsp;</td>
    <td width="75%" height="1" bgcolor="#FFFFFF" valign="top">
       <%AddMember%>
  </tr>
</table>





</body>

</html>





      
      <!-- #INCLUDE FILE="adovbs.inc" -->
<% Sub AddMember()
Dim sUserName, sPassWord, sSecondPass, RS
Dim I ' Standard looping var
sEmail = Request.Form ("txtemail")
sUserFull = Request.Form ("txtfull")
sUserName = Request.form("txtcompany")
sPassWord = Request.Form("txtphone")
sFax = Request.form("txtfax")
sAddress = Request.form("txtaddr1") & vbCrLF & Request.form("txtAddr2")
sCity = Request.form("txtcity")
sState = Request.form("txtState")
sZip = Request.form("txtZip")

If instr(1,sEmail,"@",1) = 0 then
response.write "<font face =tahoma size=1>Invalid Email Address.</font><br>"
sEmail = ""
end if
If len(sEmail) > 4 then

Response.Cookies("JAI")("MemberName") =  sUserFull
Response.Cookies("JAI")("MemberCompany") = sUserName
Response.Cookies("JAI")("MemberEmail") = sEmail
Response.Cookies("JAI")("MemberPhone") = sPassword
Response.Cookies("JAI")("MemberAddress") = sAddress
Response.Cookies("JAI")("MemberCity") = sCity
Response.Cookies("JAI")("MemberState") = sState
Response.Cookies("JAI")("MemberZip") = sZip
Response.Cookies("JAI")("MemberFax") = sFax

Response.Write "Thanks for registering"


      '################MAIL THE PERSON!!!!!!!!!!!
        DIM myMail
      Dim mBody
      SET myMail = Server.CreateObject("CDONTS.Newmail")
      myMail.From = "kevin@johnsonadvertising.com"
      myMail.To = sEmail
      myMail.Subject = "Thank You for subscribing to Johnson Advertising's Mailing List."
      mBody = mBody & "<font face=verdana size=1><b>www.johnsonadvertising.com - Member List ;)</b>" & vbCrLf & vbCrLf & vbCrLf
      mBody = mBody & "Dear " & sUserFull & ":" & vbCrLf & vbCrLf
      mBody = mBody & "  Click <a href = http://www.johnsonadvertising.com/subscribe.asp> Here</a> to varify your subscription to Johnson Advertising.  "
      mBody = mBody & "Upon varifying a free mug will be mailed to you!" & vbcrlf & vbcrlf
      mBody = mBody & vbCrLf & "Contact us at info@johnsonadvertising.com if you have any questions." & vbCrLf & vbCrLf
      mBody = mBody & "Sincerly,"
      mBody = mBody & vbCrLf & vbCrLf
      mBody = mBody & "Kevin Johnson" & vbcrlf
      mBody = mBody & "www.johnsonadvertising.com.com </font>"
      myMail.Body = mBody
      myMail.Send
      SET myMail = Nothing
Elseo
response.write "<font face=verdana size=1>Please go back and fill out all the information correctly. Thank you :-]"
end if
End SUb
%>
0
Comment
Question by:TRD_Supra
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 7

Expert Comment

by:John844
Comment Utility
if you are trying to run this on PWS then it would be because cdonts is not supportes on PWS.  If it is happening on IIS then make sure that SMTP services are installed properly.  You can take a quick look in c:/winnt/system32 for cdonts.dll.  if it is not there then reinstall SMTP services.
0
 
LVL 8

Expert Comment

by:drittich
Comment Utility
That means CDONTS was not installed when IIS was installed on the server.  
0
 
LVL 18

Accepted Solution

by:
mgfranz earned 25 total points
Comment Utility
If you are not tryinng to run CDONTS on a PWS machine, and you installed the SMTP service, you will either need to re-install the SMTP service, or try to register the .dll
0
 

Author Comment

by:TRD_Supra
Comment Utility
its uploaded to my domain and its doing it..
0
 

Author Comment

by:TRD_Supra
Comment Utility
it wasnt working in pws either...
0
 
LVL 18

Expert Comment

by:mgfranz
Comment Utility
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 18

Expert Comment

by:mgfranz
Comment Utility
SMTP will not work in PWS. Period.

If it runs from the domain then SMTP is properly configured on the domain server but not your dev server.
0
 

Author Comment

by:TRD_Supra
Comment Utility
OK, i didnt expect it to work in PWS, but I did expect it to work on the domain. (burlee is the host) i figured they have the smtp service)...


but its not working on the domain
0
 
LVL 18

Expert Comment

by:mgfranz
Comment Utility
Is burlee set-up for SMTP on your domain?  If you are not using an IIS hosting plan then your script won't work.  I suggest you call their support line.
0
 
LVL 7

Expert Comment

by:cstsang
Comment Utility
are u started the smtp service in control-> service?
Or
have u install the SMTP service on your server?
0
 

Expert Comment

by:RedCCameleon
Comment Utility
TRD_Supra,
if your question has been resolved, please accept any of the above comments as the answer. If you think this question has not been answered (yet), then please elaborate together with the experts on how to solve your problem, or make you understand why there is no solution.

I will check this question again in a few days, if no comment has been added, I will split the points between mgfranz and John844.

RedCCameleon,
COmmunity Support Moderator @ Experts Exchange
0
 
LVL 7

Expert Comment

by:John844
Comment Utility
still no comment...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now