locked
SQLCEException - The file name is not valid. Check the filename for the database RRS feed

  • Question

  • Hello.

    I can't create a database in my Windows Phone 8.1 app.

    I also tried isostore.

    My dbConn is a normal Connection-string class.

    Also note that I can see that the MyDB going in simply have "MyDB" written as DatabaseName.

    MyDB = new dbConn(@"appdata:/myDB.sdf");
    
    
    public dbConn MyDB { get; set; }
    
    using (MyDB )
                {
              
                    if(!MyDB.DatabaseExists())
                    {
                        MyDB.CreateDatabase();
                        MyDB.SubmitChanges();
                    }


    Thursday, May 29, 2014 1:50 PM

All replies