Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #11 (permalink)  
Old September 15th, 2004, 02:38 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the code that i am having trouble with

'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180

Invalid class string

Thanks



Quote:
quote:Originally posted by happygv
 Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.

There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3

This may not be relavant to your code. So how about showing some code on that?

Cheers!

_________________________
- Vijay G
Strive for Perfection
  #12 (permalink)  
Old September 15th, 2004, 08:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Looks like JMail component was not registered properly. Can you check that at your end ?

_________________________
- Vijay G
Strive for Perfection
  #13 (permalink)  
Old September 29th, 2004, 03:12 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just install Jmail component again and most probably it works fine

Charul Shukla
  #14 (permalink)  
Old September 29th, 2004, 03:57 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

When I had a similar problem after installing JMail, a simple rebooting of server solved the problem. (I think JMail will not ask to reboot after its installation)
  #15 (permalink)  
Old May 22nd, 2006, 08:19 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pkihou
 Here is the code that i am having trouble with

'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180

Invalid class string

Thanks



Quote:
quote:Originally posted by happygv
 Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.

There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3

This may not be relavant to your code. So how about showing some code on that?

Cheers!

_________________________
- Vijay G
Strive for Perfection
  #16 (permalink)  
Old May 22nd, 2006, 08:23 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pkihou
 Here is the code that i am having trouble with

'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180

Invalid class string

Thanks



Quote:
quote:Originally posted by happygv
 Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.

There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3

This may not be relavant to your code. So how about showing some code on that?

Cheers!

_________________________
- Vijay G
Strive for Perfection
Quote:
quote:
Have a look at the following piece of code, works for me on IIS 6.0

Set jmail = Server.CreateObject("jMail.Message")
    TrapError

    jmail.AddRecipient "info@bsnsw.org.au"
    jmail.From = "BSNSW_Web_Site"

    jmail.Subject = GetTypeDescription() & " - ID " & id
    jmail.Body = GetTypeDescription() & _
        vbCrLf & _
        vbCrLf & "ID: " & id & _
        vbCrLf & "Submitted: " & whenSubmitted & _
        vbCrLf & _
        vbCrLf & "Name: " & Request.Form("title") & _
                            Request.Form("firstName") & " " & Request.Form("surname") & _
        vbCrLf & "Organisation: " & Request.Form("organisation") & _
        vbCrLf & "Contact Phone: " & Request.Form("phone") & _
        vbCrLf & "Email Address: " & Request.Form("email") & _
        vbCrLf & _
        vbCrLf & ToUpperFirstChar(GetActionName()) & ": " & _
        vbCrLf & "--------" & _
        vbCrLf & Request.Form("comment")

      jmail.Send("203.62.207.226")
      TrapError
    End Sub

Ajeet Nagdev
  #17 (permalink)  
Old July 23rd, 2007, 09:41 AM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In my case I got this error message on:

    call HP_InsertSend(friendemail, youremail, yourname, addmessage, curProg)


PUBLIC Function HP_InsertSend(friendemail, youremail, yourname, addmessage, curProg)
    if len(addmessage) > 500 then
        addmessage = validatestring(left(addmessage, 500))
    end if
    dim origination
    origination=" visitor CPU: " & request.ServerVariables("HTTP_UA_CPU")& ", visitor OS specifics: " & request.ServerVariables("HTTP_USER_AGENT") & ", visitor IP: " & request.ServerVariables("REMOTE_ADDR")
    Call DBOpen (MyConn, MyCmd, MyRs)
        With MyCmd
            .ActiveConnection = MyConn
            .CommandText = "HPolitics_InsertSendFriend '" & validatestring(friendemail) & "','" & validatestring(youremail) & "','" & validatestring(yourname) & "','" & addmessage & "','" & validatestring(curProg) & "','" & origination & "'"
            'response.write .CommandText
            .Execute
        End With
    Call DBClose(MyConn, MyCmd, MyRs)

End Function 'HP_InsertSend



That page worked fine until we decide to move from win2k to windows 20033.
Any idea how to fix this?
Thanks:(

Alex




Similar Threads
Thread Thread Starter Forum Replies Last Post
Server object error 'ASP 0177 : 800401f3' lizmorley BOOK: Beginning ASP 3.0 0 February 11th, 2008 07:48 AM
Error : Server Object, ASP 0177(0x800401F3) InsouciantCoquette Classic ASP Components 2 February 21st, 2006 09:26 PM
Server Object error 'ASP 0177 : 800401f3' geeta Classic ASP Basics 1 July 10th, 2003 06:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.