Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FirebirdSql.Data.FirebirdClient on Compact framework

6 views
Skip to first unread message

Dani

unread,
Nov 14, 2009, 3:11:51 AM11/14/09
to
My problem is to connect application based on CF from windows mobile 6
professional with CF 2, at firebird database server hosted in server
machine. This is the code that i used for test, but returned an error:

"MissingMethodException in testfirebird.Form1.button1_Click() in
System.Windows.Forms.Control.OnClick() in
System.Windows.Forms.Button.OnClick() in
System.Windows.Forms.ButtonBase.WnProc() in
System.Windows.Forms.Control._InternalWnProc() in
Microsoft.AGL.Forms.EVL.EnterMainLoop() in
System.Windows.Forms.Application.Run() in testfirebird.Program.Main()"

The code compiled with visual studio 2005:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using FirebirdSql.Data.FirebirdClient;
using FirebirdSql.Data.Services;

namespace testfirebird
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
FbConnection cb = new FbConnection();
cb.ConnectionString = "Data
Source=192.168.1.1;ServerType=0;User=xxxxxxx;Password=xxxxxx;Database=test.fdb;port=3050";
FbSecurity sec = new FbSecurity();
sec.ConnectionString = cb.ConnectionString;
try
{
cb.Open();
textBox1.Text = "Connessione riuscita";
cb.Close();
}
catch (Exception ex)
{
textBox1.Text = ex.Message;

}
}
}
}

Help !

0 new messages