Reputation: 11423
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
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