Hi,
I've had the same problem, seems to be an incompatibily between the data
provider 1.7 and new classic server 2.1.
If i try the data provider framework 2.0 all work fine.
The only way that i've found to connect to a classic server 2.1, within 1.1
framework, was the ODBC Connection.
Rossano
----Messaggio originale----
Da: [EMAIL PROTECTED]
Data: 12/06/2008 11.26
A: <[email protected]>
Ogg: [Firebird-net-provider] help: connection to classic server
-->
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