Page 1 of 1

Error #11001 at connect

Posted: Thu 09 Dec 2010 11:54
by Adrian
Hi All,

I have a problem when executing an application from IDE but not when executing the [same] exe file outside IDE.
The error is:
"Cannot connect to database
Socket error connect. WSAGetLastError return 11001($2AF9)".

I get this error even with the demo application (Failover, PgDacDemo), when trying to execute Pg_Conn.Connect

Everything was fine until I write a [simple] report with Rave.

Windows XP
Delphi 2010
PgDac 1.20.0.19
Postgres 9.0

connection on localhost


Thanks in advance.

Adrian

Posted: Thu 09 Dec 2010 14:39
by AlexP
Hello,

I can not reproduce the problem.
Please download the latest version of PgDAC (2.00.0.3) and try again.

Posted: Thu 09 Dec 2010 22:43
by Adrian
Hello,

I've reinstalled Delphi 2010 and PgDac and the problem persist (with Failover). Is it possible to remain some values/settings in the registry or elsewhere?

Posted: Fri 10 Dec 2010 09:44
by AlexP
Hello,

Unfortunately I still can not reproduce the problem.
I have tested it on the same configuration as you specified, but all works fine.
Please create a new project, place the TPgConnection component onto the form, set only its connection property, and press the Connect button. If you can connect, try to run the application from the IDE and try to connect in the run-time mode.
If you can't connect in any mode (run-time and design-time), please contact me again.

The error (WSAGetLastError return 11001) is indicates that Host was not found. Please check what you set the correct Host name (in your case it should be localhost or 127.0.0.1).