[Firebird-net-provider] Using FBEmbeded in ASP.NET

2011-01-08 Thread Mercea Paul
Hi

I know I can use |DataDirectory|mydatabase.fdb to specify location for 
database but, when i use the embeded firebird, in connection string i 
specify the servertype and clientlibrary!
If i use for clientlibrary |DataDirectory|\fbembed.dll i get error. 
Until now I was know the full path to specify the clientlibrary but now 
I have a solution that can be installed in different locations.
How can I use the |DataDirectory| or other locations to get the 
fbembed.dll ???

-- 
Regards,
Mercea Paul




--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Using FBEmbeded in ASP.NET

2011-01-08 Thread Jiri Cincura
On Sat, Jan 8, 2011 at 20:14, Mercea Paul paul.mer...@almexa.ro wrote:
 Until now I was know the full path to specify the clientlibrary but now

You don't have to. If the fbembed.dll is in some well known path, the
system will load it for you.

 I have a solution that can be installed in different locations.
 How can I use the |DataDirectory| or other locations to get the
 fbembed.dll ???

Why not to place fbembed.dll to place where your application is? The
system will load it for you, even without using ClientLibrary.

-- 
Jiri {x2} Cincura (x2develop.com founder)
http://blog.cincura.net/ | http://www.ID3renamer.com

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Using FBEmbeded in ASP.NET

2011-01-08 Thread Adrián Avila Mtz .
I do it by code:

public static FbConnection GetConexion ()
{
string path =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string pathFbEmbedded = System.IO.Path.Combine(path,
@FB\fbembed.dll);

FbConnectionStringBuilder sb = new FbConnectionStringBuilder();

sb.ClientLibrary = rutaFbEmbedded;
sb.UserID = SYSDBA;
sb.Password = masterkey;
sb.Database = @CACHE.FDB;
sb.DataSource = 127.0.0.1;
sb.ServerType = FbServerType.Embedded;
sb.Dialect = 3;

FbConnection con = new FbConnection(sb.ConnectionString);


return con;
}

-Mensaje original-
De: Mercea Paul [mailto:paul.mer...@almexa.ro] 
Enviado el: sábado, 08 de enero de 2011 12:14 p.m.
Para: firebird-net-provider@lists.sourceforge.net
Asunto: [Firebird-net-provider] Using FBEmbeded in ASP.NET

Hi

I know I can use |DataDirectory|mydatabase.fdb to specify location for 
database but, when i use the embeded firebird, in connection string i 
specify the servertype and clientlibrary!
If i use for clientlibrary |DataDirectory|\fbembed.dll i get error. 
Until now I was know the full path to specify the clientlibrary but now 
I have a solution that can be installed in different locations.
How can I use the |DataDirectory| or other locations to get the 
fbembed.dll ???

-- 
Regards,
Mercea Paul





--
Gaining the trust of online customers is vital for the success of any
company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider