I recently got this error on ASP.NET 1.1 applications trying to
connect to a 2.1.x database version.
The short answer is you cannot use that version of the ADO.NET Firebird
Provider to connect to that version of database server. Whilst it works
with earlier 2.0.x versions, it does not work with any more recent
versions of the server. If this is an ASP.NET 1.1 application, you will
need to remain with version 2.0 or lower. If it is an ASP.NET 2.x or
greater application, update your Firebird ADO.NET Provider to the 2.5.x
version.
Kind regards,
Scott :)
On 09/08/2010 09:27, Walter Marsi wrote:
I'm trying to run a simple ASPx page to test Firebird .NET provider
installation
<%@ Language="VB" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="FirebirdSql.Data.Firebird" %>
<script runat="server">
sub Page_Load(Sender as Object, e as EventArgs)
dim mySelectQuery as string
dim cs as new FbConnectionStringBuilder
dim myConnection as New FbConnection
cs.Datasource = "localhost"
cs.Database = "C:\DATI\FB\XFILES.FDB"
cs.UserID = "SYSDBA"
cs.Password = "masterkey"
myConnection.ConnectionString = cs.ToString
myConnection.Open
myConnection.Close
lblMessage.Text = cs.ToString
end sub
</script>
<html><body>
<asp:Label id="lblMessage" runat="server" />
</body></html>
The FirebirdSql.Data.Firebird assembly version is 1.7.1.0. At the
"myConnection.Open" line I get this 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./
/
/
/Description: //An unhandled exception occurred during the execution
of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
//Exception Details: //System.ArgumentException: 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/
Where is the problem ?
Best regards
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider