If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How to run informix on IIS & .NET ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-07-04, 00:24
4bizinet 4bizinet is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
How to run informix on IIS & .NET ?

Spec :
- Visual Studio .NET 2003
- Informix 9.2
- Informix Connect 2.7
- IIS 5.0
- Grant Administrators Privilage to user IUSR_WIN (Internet Guest Account)
- Run on WinForm : OK
- Run on WebForm : Error -> "XIX000:-25596:The INFORMIXSERVER value is not listed in the sqlhosts

file or the Registry."

Code :
WinForm : Success
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

MyBase.Load
Dim strConn As String = "Provider=Ifxoledbc;User ID=informix;Data

Source=""brcdoc@ol_moon"";Extended Properties=;Persist Security Info=True;Password=informix"
Dim conn As New OleDb.OleDbConnection(strConn)
Dim strSQL As String = "select * from case "
Try
conn.Open()
Dim da As New OleDb.OleDbDataAdapter(strSQL, conn)
Dim ds As New DataSet
da.Fill(ds, "Test")
DataGrid1.DataSource = ds
Catch ex As Exception
Dim err As String = ex.Message
End Try
End Sub

WebForm : Error
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

MyBase.Load
Dim strConn As String = "Provider=Ifxoledbc;User ID=informix;Data

Source=""brcdoc@ol_moon"";Extended Properties=;Persist Security Info=False;Password=informix"
Dim conn As New OleDb.OleDbConnection(strConn)
Try
ifxConnection.Open()
Dim da As New OleDb.OleDbDataAdapter("select * from case", conn)
Dim ds As New DataSet
da.Fill(ds, "Test")
Catch ex As Exception
Dim ee As String = ex.Message
End Try
End Sub
Reply With Quote
  #2 (permalink)  
Old 01-07-04, 00:28
4bizinet 4bizinet is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks so much
Reply With Quote
  #3 (permalink)  
Old 01-07-04, 02:05
vpshriyan vpshriyan is offline
Registered User
 
Join Date: Nov 2003
Location: Mumbai, India
Posts: 92
Hi,

If the drivers bundled within "Informix Connect" has been installed and configured properly, the environment values supposed to set for the backend connection, gets updated in the Registry on Windows.

This message basically informs that an environment/registry value for INFORMIXSERVER, the default instance where the request should go, on connection is either missing or undefined.

To sort this out, follow:
Start - Programs - Informix - Informix Setnet32 - Environment - INFORMIXSERVER=
or similar option, and specify the informix instance name, when applied the registry gets updated.

Regards,
Shriyan
Reply With Quote
  #4 (permalink)  
Old 01-07-04, 22:55
4bizinet 4bizinet is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks a lot.

Now I work fine both WinApp and WeBApp.

My Solution ,I update 'Machine.config' file ($\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G) in <processModel> section . I change userName form 'MACHINE' to 'SYSTEM'.

Good Luck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On