Question

I have a queer problem. I was working on a project with firebird 1.5.6 .NET provider and Visual Studio 2005. Everything worked fine. Then I converted the project to a VS2008 project. Now I have the problem that when I'm trying connecting to firebird database I get the an error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index.

The error shows even as I open the connection. I got this error in server type = Default but if I set server type = Embedded then I have the possiblity to open the connection.

I tried to run my project on an other pc and there it works.

What could be the problem?

Was it helpful?

Solution

Maybe this might help you by reading this article here?

Hope this helps.

OTHER TIPS

I have this same error on connect to Interbase. I fix it.

  1. Download Source code NETProvider-2.6.5-src.7z
  2. Edit file GdsDatabase.cs replace line return this.GetDatabaseInfo(items, IscCodes.BUFFER_SIZE_256)[0].ToString();
    this
    ArrayList ar = this.GetDatabaseInfo(items, IscCodes.BUFFER_SIZE_256); if (ar.Count > 0) return ar[0].ToString(); else return String.Empty;

  3. Rebuild project

Done

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top