I am trying to connect to a Sqlite database with Windows phone 7.
But in DBHelper file I’m getting a NullReferenceException in Application.GetResourceStream():
System.IO.Stream src = Application.GetResourceStream(new Uri("/" + assemblyName + ";component/" + dbName, UriKind.Relative)).Stream;
How to solve it?
is your uri correct ? it seems that this method can’t find the resource you are asking for and strangely returns a null reference instead of throwing an exception.