C#
protected override void OnNavigatedFrom(NavigationEventArgs e) { if (dbConn != null) { /// Close the database connection. dbConn.Close(); } } private void Click_Login(object sender, RoutedEventArgs e) { dbConn = new SQLiteConnection(DB_PATH); SQLiteCommand sqCommand = new SQLiteCommand(dbConn); if (txtEmailaddress.Text != "") { sqCommand.CommandText = "SELECT * FROM Task Where Email=" + "\'" + txtEmailaddress.Text + "\'" + "and Password=" + "\'" + txtPassword.Password + "\'"; sqCommand.ExecuteNonQuery(); SQLiteDataReader reader = sqCommand.ExecuteReader();// exeception throws here } }I am using Visual Studio 2012. Please help me how to solve in this issue

Posted Jun 30, 2013, 9:25 PM EDT
nagaraj m25 reputationPosted Jun 30, 2013, 10:10 PM EDT
The type or namespace name 'SQLiteDataReader' could not be found (are you missing a using directive or an assembly reference?)
nagaraj m25 reputationPosted Jun 30, 2013, 10:11 PM EDT
Posted Jun 30, 2013, 10:38 PM EDT
Do you have sqlLite.dll reference added in your project and it is available in your mobile devices also?
Which version SQLLite are you using and from where you downloaded the dll's?
nagaraj m25 reputationPosted Jun 30, 2013, 10:51 PM EDT
I need to set user login.
Posted Jun 30, 2013, 10:53 PM EDT
nagaraj m25 reputationPosted Jun 30, 2013, 11:02 PM EDT
nagaraj m25 reputationPosted Jul 1, 2013, 4:47 AM EDT
Posted Jul 1, 2013, 4:49 AM EDT
Make sure, the sqlLite.dll's are present in bin\debug directory.
nagaraj m25 reputationPosted Jul 1, 2013, 4:55 AM EDT
Posted Jul 1, 2013, 5:08 AM EDT
nagaraj m25 reputationPosted Jul 1, 2013, 5:20 AM EDT
Posted Jul 1, 2013, 5:22 AM EDT
nagaraj m25 reputationPosted Jul 1, 2013, 5:23 AM EDT
Posted Jul 1, 2013, 8:43 PM EDT
You need to use a webservice for CRUD operations from Silverlight applications. The webservice in turn uses the SQLite assemblies.
Please let me know, if you need any help on this.
Posted Jul 1, 2013, 8:55 PM EDT
https://code.google.com/p/csharp-sqlite
or
http://sterling.codeplex.com
nagaraj m25 reputationPosted Jul 1, 2013, 9:40 PM EDT
Posted Jul 1, 2013, 10:16 PM EDT
Download the dll and add it your project.
nagaraj m25 reputationPosted Jul 1, 2013, 10:28 PM EDT
Posted Jul 1, 2013, 11:08 PM EDT
Just attached the dll's.
Please try and let me know, does it working for your application?
nagaraj m25 reputationPosted Jul 3, 2013, 5:08 AM EDT
using (var dbConn = new SQLiteConnection(DB_PATH))
{
var existing = dbConn.Query
if (existing != null)
{
NavigationService.Navigate(new Uri("/Input.xaml?selectedItem=", UriKind.Relative));
}
else
{
MessageBox.Show("invalid login");
}
}
Posted Jul 3, 2013, 5:35 AM EDT
nagaraj m25 reputationPosted Jul 4, 2013, 1:24 AM EDT
Anyway i have to say special thanks to you, because you are supporting me too..,