Invalid Operation Error
Operation is not valid due to the current state of the object.
Partial Stack Trace:
at CervellaAM.DataManager.ExecuteScalar(String sql)
at CervellaAM.Login.btnSubmitLogin_Click(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
So.. it seems to me like the error is coming into play when the user clicks the login button, and SQLite cannot open the database. AT least, that's my take on it.
Setup generated an Application Files folder on my desktop, and the database is not in there. Does this mean the database is not available to my program? I did not write and create database/tables code because I thought embedding the database in the binaries would auto generate it when I deployed it. The System.Data.SQLite dll is included in the Application Files, so I know it's not missing from the published version.
Edit: The purpose is for the application to ship with a database that contains 2 empty tables (columns are there to be filled by customer actions)
This post has been edited by synlight: 08 October 2013 - 05:27 AM