The transport failed to connect to the server.

Rate It (1)

Last post 04-11-2009 3:02 AM by srankamal. 6 replies.

Sort Posts:

  • The transport failed to connect to the server.

    08-05-2005, 2:19 PM
    • Member
      25 point Member
    • paolad
    • Member since 08-05-2005, 6:15 PM
    • Posts 5
     Need assistance. I am trying to get the password reminder to work but it seems to be erroring. I think it has to do with my smtp server. I have tried using my ISP smtp server but i think they may require authentication so I started the smtp virtual server within IIS and pointed it to this by entering localhost, servername, website name. None of these make the form work. Does anyone know what I need to do in order to get this to work as I also want to use the email newsletter option but assuming that wont work since simple email password reminder isnt working.

    Server Error in '/' Application.

    The transport failed to connect to the server.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [COMException (0x80040213): The transport failed to connect to the server.
    ]
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
       System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
       System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +58
    
    [HttpException (0x80004005): Could not access 'CDO.Message' object.]
       System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +113
       System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
       System.Web.Mail.SmtpMail.Send(MailMessage message) +150
       ASPNET.StarterKit.Communities.EmailUtility.SendEmail(String from, String to, String subject, String body, MailFormat bodyFormat, String smtpServer) +94
       ASPNET.StarterKit.Communities.EmailUtility.SendFormattedEmail(String from, MessageInfo messageInfo, ProfileInfo profileInfo, String smtpServer) +118
       ASPNET.StarterKit.Communities.PasswordReminder.btnSend_Click(Object s, EventArgs e) +188
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain() +1266
    
  • Re: The transport failed to connect to the server.

    08-05-2005, 2:51 PM
    • Contributor
      3,320 point Contributor
    • narayanas
    • Member since 10-20-2004, 6:39 AM
    • San Jose, CA
    • Posts 662
    Try the following fix:

    http://www.systemwebmail.com/print/4.3.9.aspx

    My be you could use the following for testing purposes;
    http://www.abuse.net/relay.html
    Regards, Narayana Rao Surapaneni Architect | Author | MCSD for .NET | MCSD | SCJP www.msdeveloper.info
  • Re: The transport failed to connect to the server.

    08-09-2005, 1:06 PM
    • Member
      25 point Member
    • paolad
    • Member since 08-05-2005, 6:15 PM
    • Posts 5
    I was testing my smtp directly and realized that my smtp was working fine. So i took a look at the code for the emailutility.vb and upon me changing the code where the To and from are listed, then it worked.
    Below is the section I edited. I put an actual email address in the TO and FRom lines. Now the password reminder works but the newsletter still doesnt not work. Did anyone find that this code was set differently for their CSK?

    '*********************************************************************
        '
        ' SendEmail Method
        '
        ' Sends a single email.
        '
        '*********************************************************************
        Public Shared Sub SendEmail(from As String, [to] As String, subject As String, body As String, bodyFormat As MailFormat, smtpServer As String)
            Dim message As New MailMessage()
            message.From = admin@yahoo.com
            message.To = user@yahoo.com
            message.Subject = subject
            message.Body = body
            message.BodyFormat = bodyFormat
            message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication
            message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username") 'set your username here
            message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password") 'set your password here
            SmtpMail.SmtpServer = smtpServer
            SmtpMail.Send(message)
        End Sub 'SendEmail
  • Re: The transport failed to connect to the server.

    08-09-2005, 3:45 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985
    See if this thread helps -

    Hardcoding the sent to and from is not advisable - you simply need to make sure that the items listed in my response in this thread are taken care of.  If so then your mail and CDO error messages will go away as you will have allowed relaying of messages from your community...

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: The transport failed to connect to the server.

    04-11-2009, 2:40 AM
    • Member
      96 point Member
    • srankamal
    • Member since 02-04-2009, 6:49 AM
    • Posts 219

    hello all i am also facing same error please help me out

    i am unable to get anything from this link http://www.systemwebmail.com/print/4.3.9.aspx please suggest me how can i chcek my smtp is working fine or not ?? please help me out.i will be very thankfull 2 you.
    Mark as an answer if it helps
  • Re: The transport failed to connect to the server.

    04-11-2009, 2:48 AM
    • All-Star
      59,903 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 10:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs

    srankamal:

    hello all i am also facing same error please help me out

    i am unable to get anything from this link http://www.systemwebmail.com/print/4.3.9.aspx please suggest me how can i chcek my smtp is working fine or not ?? please help me out.i will be very thankfull 2 you.

    Start a new thread and post your code there

     

  • Re: The transport failed to connect to the server.

    04-11-2009, 3:02 AM
    • Member
      96 point Member
    • srankamal
    • Member since 02-04-2009, 6:49 AM
    • Posts 219

    okayyyyyy

    Mark as an answer if it helps
Page 1 of 1 (7 items)