I've installed the trial version of IBM Informix Dynamic Server 11.50 on my development laptop, for use with an ASP.NET 2.0 app I'm writing. I have created a couple databases and filled them with sample data but I cannot connect. This is the relevant section of code:
Dim facStr As String = System.Configuration.ConfigurationManager.ConnectionStrings("fact").ConnectionString
conn.ConnectionString = facStr
Try
conn.Open()
Catch ex As Exception
The exception is:
[Informix .NET provider][Informix]Server ol_srv_custom is not listed as a dbserver name in sqlhosts.
The full path to the sqlhosts file is:
C:\Archivos de programa\IBM\Informix\Client-SDK\etc\sqlhosts
Informix's environment variables:
INFORMIXSQLHOSTS=C:\Archivos de programa\IBM\Informix\Client-SDK\etc\sqlhosts
Contents of sqlhosts file:
ol_srv_custom olsoctcp *nb-desarrollo svc_custom
Connect string:
**Host=*nb-desarrollo; Service=svc_custom; Server=ol_srv_custom; Database=fact; User Id=informix; password=**********
Any ideas?
ODBC doesn't work either. When I try to create the DSN the driver user interface asks me to select a "Server Name" from a combobox, but it's empty. In fact, the only way I have to connect to this Informix installation is using the console utility dbaccess, that's how I created the test databases and INSERTed the sample data. I'm not sure if this question still belongs in SO, maybe ServerFault might be more appropiate place to ask but I don't know how to move it.