Here is the exception:
FirebirdSql.Data.FirebirdClient.FbException: Unable to complete network request to host "192.168.15.101 ". ---> FirebirdSql.Data.Common.IscException: Exception of type 'FirebirdSql.Data.Common.IscException' was thrown.
at FirebirdSql.Data.Client.Gds.GdsConnection.Connect (String dataSource, Int32 port, Int32 packetSize, Charset charset)
at FirebirdSql.Data.Client.Gds.GdsDatabase.Attach(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
--- End of inner exception stack trace ---
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create ()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()
at FirebirdSql.Data.FirebirdClient.FbPoolManager.GetConnection (String connectionString)
at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at ConsoleApplication1.Program.Main(String[] args) in D:\Documents and Settings\suporte\Configurações locais\Dados de aplicativos\Temporary Projects\ConsoleApplication1\Program.cs:line 25
And here is my code:
using System;
using System.Collections.Generic;
using System.Text;
using FirebirdSql.Data.FirebirdClient;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string connectionString =
"User=SYSDBA;" +
"Password=masterkey;" +
"Database=/home/trab/SiadPHP/testes/siad.gdb;" +
"DataSource=192.168.15.101 ;" +
"Port=3050;" +
"Dialect=3;" +
"Charset=ISO8859_1;";
FbConnection fbConn = new FbConnection(connectionString);
try
{
fbConn.Open();
}
catch (Exception e)
{
StreamWriter fwriter = File.CreateText(@"D:\teste.txt");
fwriter.WriteLine(e.ToString());
fwriter.Close();
}
}
}
}
On 3/17/06,
Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
Hello:
> Yes, i tried that and it connects.
Ok.
> But the thing is:
>
> I uninstalled the 2.0 beta4 and installed the 1.7 version and it
> worked in the first try without changing anything on the code, so the
> problem isnt my connection.
I need more info can you build the provider sources and do a debug to
see where it's being raised the exception, and can you send here the
complete details of the exception, just catch it and do a ToString of
the exception.
--
Carlos Guzmán Álvarez
Vigo-Spain
http://carlosga.blogspot.com/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider