I am new to programming the .net IBOs so here is my first challenge connecting to the IMIS database
I created a windows appliction and added a reference to the asi.ibo.dll and write the following code behind a simple button
imports asi.ibo
Dim i As Integer Dim cn As String
Try
cn = "Data Source=myserver;user id=m;password=mypassword;Initial Catalog=IMIS"
iboAdmin.InitializeSystem(cn)
Catch
MsgBox(Err.Description, MsgBoxStyle.Critical,
"Error")End Try
WHen I call the initializesystem function I get a message box "There is no source available fro the current location" anyone knows what this means.
End Sub
Hi mfungafat, Try switching
Hi mfungafat,
Try switching the "initial catalog=" in your connection string to "database=".
You can also put your connection strings in the web.config file. iBO.NET is set to use the "DataSource.iMIS.Connection" connection string in your web.config file by default when you use iboAdmin.InitializeSystem() without parameters.
Sean Irish