Archived Forum Post

Index of archived forum posts

Question:

SocketError: WSAEPROTOTYPE while connecting to SMTP

Feb 04 '16 at 09:11

Hi,

By one of my users (with windows XP) i get the flowing error while sending a e-mail : The smtpserver on the other site is working, alsow his normal e-mail program with the same settings. I already upgrade from 9.5.0.45 to 9.5.0.49 with the same error.

ChilkatLog:
 SendEmail:
   DllDate: May  8 2015
   ChilkatVersion: 9.5.0.49
   UnlockPrefix: EASYXXXXX
   Username: XXX-PC:XXX
   Architecture: Little Endian; 32-bit
   Language: ActiveX
   VerboseLogging: 0
   sendEmailInner:
     renderToMime:
       createEmailForSending:
         xSigningAlg: sha1
         Auto-generating Message-ID
       --createEmailForSending
       renderToMime: Elapsed time: 0 millisec
     --renderToMime
     sendMimeInner:
       progressTotal: 647
       ensureSmtpSession:
         ensureSmtpConnection:
           SmtpHost: smtp.xs4all.nl
           SmtpPort: 25
           SmtpUsername:
           SmtpSsl: 0
           StartTLS: 0
           smtpConnect:
             smtpHostname: smtp.xs4all.nl
             smtpPort: 25
             connectionIsReady:
               Need new SMTP connection
             --connectionIsReady
             smtpSocketConnect:
               socket2Connect:
                 connect2:
                   connectSocket:
                     connect_ipv6_or_ipv4:
                       ai_family: 2
                       ai_socktype: 0
                       ai_protocol: 0
                       SocketError: WSAEPROTOTYPE The specified protocol is the wrong type for this socket.
                       Failed to create socket for connecting.
                     --connect_ipv6_or_ipv4
                   --connectSocket
                   ConnectFailReason: Internal error
                 --connect2
               --socket2Connect
               Failed to connect to SMTP server..
             --smtpSocketConnect
           --smtpConnect
         --ensureSmtpConnection
       --ensureSmtpSession
     --sendMimeInner
   --sendEmailInner
   Failed.
 --SendEmail
--ChilkatLog

Answer

Had same Problem on Windows 7 64bit with Chillkat v9.5.0.45 after installing VisualStudio 2015 compiled for .Net 4.5.2 i got always the SocketError: WSAEPROTOTYPE The specified protocol is the wrong type for this socket.

Update Chillkat to v9.5.0.55 for .Net 4.5 VS2013 works for me....


Answer

I can't recall the specifics, but this was fixed at some point in the last year. (So updating to the latest version is the correct resolution.)