Hello folks.
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? Thanks in advance. Ernesto.