dear all,
if i use embedded server 2.1, my application is worked good, with code programm:
dim cs As New FirebirdSql.Data.Firebird.FbConnectionStringBuilder
cs.DataSource = "localhost"
cs.Database = "C:\GENAPP\database\application.FDB"
cs.UserID = "sysdba"
cs.Password = "masterkey"
cs.Dialect = 3
cs.ServerType = 1
Dim myConnection As New FirebirdSql.Data.Firebird.FbConnection(cs.ToString())
Try
myConnection.Open()
hg.ActiveForm.Text = "open"
myConnection.Close()
Catch ex As Exception
myConnection.Close()
MessageBox.Show(ex.Message)
End Try
but if i change cs.ServerType = 0, to use classic server, my application is not
worked, with code programm:
Dim cs As New FirebirdSql.Data.Firebird.FbConnectionStringBuilder
cs.DataSource = "localhost"
cs.Database = "C:\GENAPP\database\application.FDB"
cs.UserID = "sysdba"
cs.Password = "masterkey"
cs.Port = 3050
cs.ServerType = 0
Dim myConnection As New FirebirdSql.Data.Firebird.FbConnection(cs.ToString())
Try
myConnection.Open()
hg.ActiveForm.Text = "open"
myConnection.Close()
Catch ex As Exception
myConnection.Close()
MessageBox.Show(ex.Message)
End Try
and the error message: offset and length were out of bounds for the array or
count is greater than the number of elements from index to the end of the
source collection.
btw, i use:
firebird classic server 2.1,
firebird .NET data provider 1.7,
vb. net 2003, .net 1.1
OS: windows xp sp2
thanks
tahan tobing-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider