K
Ken Sorrow
So I'm developing a mobile application using the .NET CF 3.5 for
Windows Mobile 6.1 Professional. I've downloaded and installed the
MySQL Connector/.NET and added a reference to the
MySQL.Data.MySQLClient to my project. I've imported it with a Imports
MySQL.Data.MySQLClient and it seems like it's ready to use.
Now, I created a variable to hold my connection string like this:
Dim myConnectionString as String = myConnectionString =
"Database=openemr;Data Source=" & DatabaseServer.Text & ";User Id=" &
AdminUsername.Text & ";Password=" & AdminPassword.Text & ";"
This is according to the documentation.
Now, I try to create a connection called myConnection like this:
Dim myConnection as new MySQLConnection(myConnectionString)
That's where everything dies and I get this error:
Error 1 Reference required to assembly 'System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the base
class 'System.Data.Common.DbConnection'. Add one to your project. C:
\Documents and Settings\Administrator\My Documents\Visual Studio
2008\Projects\OpenEMR Mobile\OpenEMR Mobile
\ConfigureClientConnection.vb 27 32 OpenEMR Mobile
So I allowed Visual Studio to fix it and it still throws the error.
Next, I manually added an "Imports System.Data.Common.DbConnection"
statement and still nothing.
I am at a complete standstill. Can anyone tell me what I'm doing
wrong?
Thanks!
ken
Windows Mobile 6.1 Professional. I've downloaded and installed the
MySQL Connector/.NET and added a reference to the
MySQL.Data.MySQLClient to my project. I've imported it with a Imports
MySQL.Data.MySQLClient and it seems like it's ready to use.
Now, I created a variable to hold my connection string like this:
Dim myConnectionString as String = myConnectionString =
"Database=openemr;Data Source=" & DatabaseServer.Text & ";User Id=" &
AdminUsername.Text & ";Password=" & AdminPassword.Text & ";"
This is according to the documentation.
Now, I try to create a connection called myConnection like this:
Dim myConnection as new MySQLConnection(myConnectionString)
That's where everything dies and I get this error:
Error 1 Reference required to assembly 'System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the base
class 'System.Data.Common.DbConnection'. Add one to your project. C:
\Documents and Settings\Administrator\My Documents\Visual Studio
2008\Projects\OpenEMR Mobile\OpenEMR Mobile
\ConfigureClientConnection.vb 27 32 OpenEMR Mobile
So I allowed Visual Studio to fix it and it still throws the error.
Next, I manually added an "Imports System.Data.Common.DbConnection"
statement and still nothing.
I am at a complete standstill. Can anyone tell me what I'm doing
wrong?
Thanks!
ken