C
CWing.Yip
Hi, I'm writing a Windows Mobile 5.0 application on Pocket PC that
connect to it's local database on the PPC. However, a
PlatformNotSupportedException being throwed everytime
sqlCeCommand.ExecuteReader() is run. I'm using Visual Studio 2005 for
development and I have installed .NET CF 2.0, SQL Mobile 2005 and SQL
Client 2.0 on the PPC. Do you have any idea about the error? Is there
any conflict between the versions?
Thanks for your help!
The code is as below:
Private Sub ConnectDB()
Dim rdr As Object ' .Data.SqlServerCe.SqlCeDataReader
Dim Conn As New System.Data.SqlServerCe.SqlCeConnection("Data
Source = \Program Files\Test\DB1.sdf;")
Conn.Open()
Dim cmd As New SqlCeCommand("Select * from Area", Conn)
rdr = cmd.ExecuteReader() <------ Exception throw
....
....
....
Conn.Close()
End Sub
connect to it's local database on the PPC. However, a
PlatformNotSupportedException being throwed everytime
sqlCeCommand.ExecuteReader() is run. I'm using Visual Studio 2005 for
development and I have installed .NET CF 2.0, SQL Mobile 2005 and SQL
Client 2.0 on the PPC. Do you have any idea about the error? Is there
any conflict between the versions?
Thanks for your help!
The code is as below:
Private Sub ConnectDB()
Dim rdr As Object ' .Data.SqlServerCe.SqlCeDataReader
Dim Conn As New System.Data.SqlServerCe.SqlCeConnection("Data
Source = \Program Files\Test\DB1.sdf;")
Conn.Open()
Dim cmd As New SqlCeCommand("Select * from Area", Conn)
rdr = cmd.ExecuteReader() <------ Exception throw
....
....
....
Conn.Close()
End Sub