The database file cannot be found. Check the path to the database. [ Data Source = VetCon2010BD.sdf ]
Codigo donde esta el error:
Código:
Tambien probe pone en la variable de la ruta la dirección completa ej: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGuardar.Click
Dim connectionString As String
Dim fileName As String = "VetCon2010BD.sdf"
Dim password As String = ""
'string conexion sql server compact
connectionString = String.Format("DataSource=""{0}""; Password=’{1}’", fileName, password)
MessageBox.Show(connectionString)
Dim conexion As New SqlCeConnection(connectionString) 'creo el objeto de conexion
If conexion.State = ConnectionState.Closed Then
conexion.Open()
MessageBox.Show("conexion establecida")
End If
End Sub
C:\Visualapp/VetCon2010BD.sdf
Pero aun persiste el error. Cualquier sugerencia es bienvenidad, gracias.
PD: recien comienzo con Visual Net asi que es probable sea algo simple.


