Current location: Hot Scripts Forums » Programming Languages » ASP » Server object error 'ASP 0177 : 800401f3'

Server object error 'ASP 0177 : 800401f3'

Reply
  #1  
Old 06-07-04, 10:46 PM
violet violet is offline
New Member
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Server object error 'ASP 0177 : 800401f3'

Hi everyone~ , i'm new to ASP language, so now i had face some problem in my ASP code for sending email. Here is my code as below :-

<%
Dim MailObj
Set MailObj = Server.CreateObject ("CDONTS.NewMail")
MailObj.From = "serder@carstd.com"
MailObj.To = "receiver@yahoo.com"
MailObj.Subject = "Thanks for Registering with Carstudio!"
MailObj.Body = "You have Registered for CarStudio.com"

MailObj.BodyFormat = 1
MailObj.MailFormat = 0
MailObj.Send set MailObj = Nothing

Response.Write ( " Dealer Sucessfully Registered. Kindly wait for our notification email to approve your dealership.")
%>

when i try to sign up as a new dealer, after i click 'Register Me' button , it display the error message as below:-

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/DealerRegister.asp, line 306
'Set MailObj = Server.CreateObject("CDONTS.NewMail") ->for line 306

800401f3

eventhough it display the error message but the data still store in my database file.
anyone can tell me what wrong in my code? thanks a lot.
Reply With Quote
  #2  
Old 06-08-04, 01:35 AM
chirag's Avatar
chirag chirag is offline
Newbie Coder
 
Join Date: May 2004
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

try using following code this is you code only i have not made any changes just re-formatted.....which you can notice...
your original code was not working...
but its working fine....now
have a try...

<%
Dim MailObj
Set MailObj = Server.CreateObject ("CDONTS.NewMail")
MailObj.From = "serder@carstd.com"
MailObj.To = "receiver@yahoo.com"
MailObj.Subject = "Thanks for Registering with Carstudio!"
MailObj.Body = "You have Registered for CarStudio.com"

MailObj.BodyFormat = 1
MailObj.MailFormat = 0
MailObj.Send
set MailObj = Nothing

Response.Write ( " Dealer Sucessfully Registered. Kindly wait for our notification email to approve your dealership.")
%>
Reply With Quote
  #3  
Old 09-01-04, 12:32 AM
ggill ggill is offline
New Member
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
You need to register CDONTS.dll
check this link
http://crt.doce.lsu.edu/CRT-HTML-Class/Lesson29a.html
Reply With Quote
  #4  
Old 09-02-04, 10:02 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Most likely your server is the latest Windows Server and does not use CDONTS. Try the folowing

<%
set MailObj = Server.CreateObject("CDO.Message")
MailObj.From = "serder@carstd.com"
MailObj.To = "receiver@yahoo.com"
MailObj.Subject = "Thanks for Registering with Carstudio!"
''// For text email use
MailObj.TextBody = "You have Registered for CarStudio.com"
''// For HTML email use
MailObj.HTMLBody = "You have Registered for CarStudio.com"
MailObj.Send
set MailObj = Nothing

Response.Write ( " Dealer Sucessfully Registered. Kindly wait for our notification email to approve your dealership.")
%>

As you can see it is very close, but leave it to MicroStiff to change it just enough to cause errors.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free web site, control panel, and dedicated IP with game server purchase for only $25 twastudios General Advertisements 3 10-20-05 07:13 AM
Please Help ! sweetgurl Everything Java 2 04-13-04 12:57 PM
Object Oriented Programming Stefan PHP 29 12-30-03 12:22 PM
FREE Team Speak server w/ every purchase of a Call of Duty Server twastudios General Advertisements 0 10-31-03 02:14 AM


All times are GMT -5. The time now is 10:48 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)