dbnetlib.dll

J

jose cantu

Hi, Iam getting an error "Cann't find the file DLL PInvoke 'dbnetlib.dll'"
when my application tries to open a connection to a Local SqlServer. The
application is running on a device with windowsmobile 5 and Iam using
VisualStudio 2005 (compact framework 2). Iam deploying directly from Visual
Studio with Active Sync 4.1 when executing the application.

Any help is greatly appreciated.
Thanks.
- Jose.
 
J

jose cantu

Thanks for replying,, this is the entire code of the single form. This code
did worked on a Pocket PC device, but now Im testing it on a WindowsMobile
5. Thanks.

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Data.SqlClient;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace DeviceApplication1 {

public partial class Form1 : Form {

public Form1() {

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e) {


SqlConnection _oConnection = new SqlConnection("Data Source=10.0.0.3;Initial
Catalog=Fenix;Integrated Security=SSPI");

try {

_oConnection.Open();

_oConnection.Close();

}

catch (SqlException err) {

MessageBox.Show(err.Message);

}


}

}

}
 
J

jose cantu

Took me 2 hours to get the correct versión, becuase I was installing the
cabs in the SQL Server\Mobile\ directory.

The following worked for me:
C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL
Server\Client\v2.0\wce500\armv4i

files: sql.deb.ENUM.phone.wce5.armv4i.cab & sql.phone.wce5.arm4i.CAB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top