No connection could be made because the target machine actively refused it

Last post 11-14-2007 2:32 AM by harshal_waingankar. 2 replies.

Sort Posts:

  • No connection could be made because the target machine actively refused it

    06-22-2007, 4:21 PM
    • Member
      7 point Member
    • rvidal
    • Member since 05-10-2007, 3:26 PM
    • Posts 8

    Hi,

    I'm trying to send email with SMTP from a webproject developed in C-Sharp and ASP.NET 2.0, In my code i assigned my machine name as Computos8,and i got the following message.

    No connection could be made because the target machine actively refused it

     

    Any help will be appreciated.

  • Re: No connection could be made because the target machine actively refused it

    06-23-2007, 12:26 PM
    Answer
    • All-Star
      54,821 point All-Star
    • DarrellNorton
    • Member since 04-04-2003, 3:49 PM
    • VA, USA
    • Posts 6,600
    • Moderator
      TrustedFriends-MVPs

    That error message usually means a firewall is blocking your connection.  Instead of using your machine name "Computos8", try using "localhost". 

    Darrell Norton, MVP
    Darrell Norton's Blog


    Please mark this post as answered if it helped you!
  • Re: No connection could be made because the target machine actively refused it

    11-14-2007, 2:32 AM

    Hi Darell Norton,

    Even i am facing the same problem while sending mails. I tried using "localhost" but still it gives the same error.

    I am using Asp.net 2.0.

    Thanks.

    Please mark as ANSWER if it helps YOU!
Page 1 of 1 (3 items)