Hi there
I'm very new to FB, and this is my first posting here. So first of all:
great work!
I'm having issues getting my application to work with FB embedded. I've
come this far (the app runs on a machine without an FB server):
If I use the embedded DLL 1.5.3.4870, I'm getting an error telling me
that the database file was invalid. This was to expect.
However, if I'm using FB 2.0.0.12654 which I got via the .NET Firebird
site (or a later version taken from the FB web site), I'm getting this
exception:
"Unable to complete network request to host "localhost" at
GdsConnection.Connect(String dataSource, Int32 port, Int32 packetSize,
Charset charset)
It appears that the FbClient library falls back to server mode (although
I'm getting the "missing fbembed.dll" exception if there is no DLL
around). I'm using the following code to create my connection string:
public static string GetConnectionString(string filePath)
{
if (!File.Exists(filePath)) throw new FileNotFoundException();
//create connection string
FbConnectionStringBuilder builder = new FbConnectionStringBuilder();
builder.Database = filePath;
builder.ServerType = FbServerType.Embedded;
builder.Pooling = true;
builder.Charset = "UTF8";
//return the connection string
return builder.ToString();
}
Thanks for your advice
Philipp
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider