Anyname Donotcare
Anyname Donotcare

Reputation: 11423

Cannot connect to database server

When I run:

if (connection.State == ConnectionState.Closed) connection.Open();

I Get the the following exception:

ERROR [08004] [Informix .NET provider][Informix]Cannot connect to database server ...

I don't know what the problem is; can you tell me?

Upvotes: 1

Views: 2629

Answers (1)

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121057

According to the documentation error 08004 means:

Data source rejected establishment of connection

So maybe your credentials are incorrect or some ip restrictions are in place.

Upvotes: 2

Related Questions