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