Ok - I create a SDF in VS2005 - copied it to the PPC and now I am trying to run this code - deploying it to the PPC - app starts and I can click the FIND button...

VB Code:
  1. Imports System.Data.SqlServerCe
  2.  
  3. Public Class StuMobile
  4.  
  5.     Private Dcn As SqlCeConnection
  6.     Private Drc As SqlCeCommand
  7.     Private Drs As SqlCeResultSet
  8.     Private Drd As SqlCeDataReader
  9.  
  10.     Private Sub Find_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Find.Click
  11.         Drc = New SqlCeCommand
  12.         Drc.Connection = Dcn
  13.         Drc.CommandType = Data.CommandType.Text
  14.         Drc.CommandText = "Select * From Student Where LastName like '" & Find.Text & "%'"
  15.         Drd = Drc.ExecuteReader
  16.         Results.Clear()
  17.         While Drd.Read
  18.             Results.Items.Add(Drd(1))
  19.         End While
  20.     End Sub
  21.  
  22.     Private Sub StuMobile_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  23.         Dcn = New SqlCeConnection
  24.         Dcn.ConnectionString = "Data Source=\My Documents\Business\iPAQ.sdf; Password=xyz"
  25.         Dcn.Open()
  26.     End Sub
  27. End Class
Seems to be getting this error:

A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
I'm just doing a quick proof of concept - thought this would work.

Should I not be copying the SDF to the PPC?