Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Resultcode 10060 on some workstations only
dharrel

From: Ottawa, ON Canada
Posts: 6
Member Since: 03/15/05
posted March 15, 2005 8:46 PM

Hello,

We have been using the Dart MailTool ActiveX in our PowerBuilder application for a few years now. Recently one of our customers is reporting problems sending SMTP mail through mailtool on some of their workstations only. The SMTP send takes a while on the affected workstations, whereas it runs lickety-split on others (and apparently used to run lickety-split everywhere). Sometimes the time-consuming send will go through, other times it will produce an error 10060. 

The same application is sending mail the same way on the "good" and "bad" workstations, and my customer assures me that the workstations all have the same network characteristics. We just provided them with the latest DLLs, and this did not make a difference. 

Any idea what could be going wrong, and what could be done to debug or fix this? 

Thanks.

dharrel.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 15, 2005 10:07 PM

Do they have virus checker software running? If so, tell them to turn it off and see if anything changes.
dharrel

From: Ottawa, ON Canada
Posts: 6
Member Since: 03/15/05
posted March 16, 2005 3:56 PM

Thanks for the suggestion. No luck on turning off virus checker. Error manifests itself on workstations without anti-virus software. 

I have further determined that the error occurs in the login call. 

The prior calls are made and are successful:
 Capabilities.Clear()
 DSN (dsnDefault)

The failure is reported 30 seconds after the successful call to DSN(...). 

FWIW - our application also uses the POP capability of the mail tool, and this seems to have no problem. 

Further help would be greatly appreciated. We are at a loss!

Thanks,

dharrel
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 16, 2005 4:02 PM

Try using the Trace method to create a log file and then see if the log tells you anything.
dharrel

From: Ottawa, ON Canada
Posts: 6
Member Since: 03/15/05
posted March 17, 2005 7:22 PM

Unfortunately I am having trouble getting a trace file. I use the following PB code prior to a send:

this.object.trace("c:\dartdbg.txt", true, true, "Sent: ", "Received: ")

I believe the statement is accepted because I get an error if I misspell "trace" or add an extra parameter.

Is there anything I am missing in terms of producing a trace file? 

Thanks,

dharrel
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 17, 2005 7:29 PM

As I recall, in PowerBuilder you have to declare an Any and then set the Any to the filename.

Take a look at one the sample apps to see how it's really done.
dharrel

From: Ottawa, ON Canada
Posts: 6
Member Since: 03/15/05
posted March 28, 2005 1:01 PM

Thanks for bearing with me - it took a bit to get an answer. 

I am sure we are initiating trace correctly as I can get a trace when running our app on my machine. I believe my customer is not getting a trace because, as I have determined from other debug code, the timeout occurs when invoking the Login method. 

Can you think of any reason why STMP login from our app would timeout on some of his machines and not others? My customer tells me his IT people cannot determine a reason. 

Thanks,

dharrel
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 28, 2005 1:07 PM

If you don't get a trace, it means that we never received a greeting from the server. Next time it happens, have someone on the affected machine use windows telnet from the command prompt like so:

telnet servername 25

to connect to the server on port 25.

When you do that you should get a greeting like this:

220 mail.dart.com (IMail 8.15 623-2) NT-ESMTP Server X1

dharrel

From: Ottawa, ON Canada
Posts: 6
Member Since: 03/15/05
posted March 30, 2005 6:02 PM

Problem Solved!

It turns out the problem was related to virus checking software after all. 

The problematic workstations had the newer version of McAfee anti-virus software installed: "8.0i". The "On Access Scanning" feature was enabled, and in particular, the offending enabled option was, "port blocking enabled for mass e-mail" for port 25. Once my customer disabled this offending option, SMTP mailtool worked just fine. 

Very likely that when asked to disable virus checking earlier in this thread, the "On Access Scanning" aspect was not disabled. 

Thank you very much for your help.

dharrel.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX