From: Ulrich G. <ulr...@ar...> - 2017-08-14 11:54:04
|
<!DOCTYPE html> <html><head> <meta charset="UTF-8"> </head><body><p>Since this new class with its own data connection were introduced, I can't make it work anymore. When using the</p><p><br></p><p>QueueEvents(EventName) method an exception [] is thrown ["Error reading data from the connection."]</p><p>I'm using the same connection string which I'm using for my other data connections</p><p>Its also not working with the provided example code :</p><pre><em>using (var @event = new FbRemoteEvent(Connection.ConnectionString)) { @event.RemoteEventError += (sender, e) => { Console.WriteLine($"ERROR: {e.Error}"); }; @event.RemoteEventCounts += (sender, e) => { Console.WriteLine($"{e.Name}: {e.Counts}"); }; @event.QueueEvents("test"); using (var cmd = Connection.CreateCommand()) { cmd.CommandText = "execute block as begin post_event 'test'; end"; cmd.ExecuteNonQuery(); } Console.ReadKey(); }<br><br>My connection string is :<br><br>"initial catalog=database.fdb;data source=Localhost;port number=3050;character set=ISO8859_1;user id=sysdba;password=masterkey;pooling=False;min pool size=1;max pool size=50;client library=fbClient.dll;dialect=3"<br><br><br></em></pre><p>Best regards</p></body></html> |