Article View: borland.public.cppbuilder.internet.socket
Article #1615Re: Both local and domain user produce API ASync Lookup error ?
From: Remy Lebeau (TeamB)
Date: Fri, 08 Dec 2006 05:17
Date: Fri, 08 Dec 2006 05:17
39 lines
2575 bytes
2575 bytes
"Quentin David Jones" <quentin.jones@romteck.com.spamprotect> wrote in message news:4578ed46@newsgroups.borland.com... > For user names (ServiceStartName and Password in service properties), > I have tried 3 options: > quentin.jones, password > .\quentin.jones, password > quentin.jones@romteck.com, password If the user account is local to the machine that the service is installed on, then use the second format above, as per the documentation. > Step B - START the service. > This produces two events immediately: > 1. Application event "Socket activated" - as expected Then the service is starting properly, and the socket is opened. > 2. ERROR event " Windows socket error: The requested name is valid > and was found in the database, but it does not have the correct associated > data being resolved for (11004), on API 'ASync Lookup'. " > > What on earth is this ASync Lookup error caused by? The only way for that to occur is if you have the TServerSocket's Service property set to a non-empty string. When you do that, TServerSocket dynamically queries the port number that is associated with the specified Service provider. Obviously, you are setting the Service to an invalid value. You should get rid of the Service property value altogether and just set the Port property directly instead. > Note that it only shows in Event Viewer now, not as a Windows error popup. As it should be. Uncaught exceptions that occur in the context of TService's thread will be passed to the NT Event Log. Gambit
Technical Details
Message-ID:
<4578f53c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4578ba1b@newsgroups.borland.com> <4578bc9c$1@newsgroups.borland.com> <4578d02b$1@newsgroups.borland.com> <4578dae2$1@newsgroups.borland.com> <4578ed46@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c2ba0c1ed7538b68 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4578ba1b@newsgroups.borland.com> <4578bc9c$1@newsgroups.borland.com> <4578d02b$1@newsgroups.borland.com> <4578dae2$1@newsgroups.borland.com> <4578ed46@newsgroups.borland.com> Subject: Re: Both local and domain user produce API ASync Lookup error ? Date: Thu, 7 Dec 2006 21:17:33 -0800 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <4578f53c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1165555004 75.83.34.171 (7 Dec 2006 21:16:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail