Hi Namzat,
Thanks for letting me know. I see the problem in DBIndexingQueue.cs
It has this method to get the connection string:
private static string GetConnectionString()
{
string connectionString = ConfigurationManager.AppSettings["SqliteConnectionString"];
if (
(connectionString == "defaultdblocation")
&& (HttpContext.Current != null)
)
{
connectionString = "version=3,URI=file:"
+ HttpContext.Current.Server.MapPath("~/Data/sqlitedb/mojoportal.db");
}
return connectionString;
}
This causes an error because the taskqueue is processed on a background thread and HttpContext.Current will always be null.
Ths fix is to change the method like this:
private static string GetConnectionString()
{
string connectionString = ConfigurationManager.AppSettings["SqliteConnectionString"];
if (connectionString == "defaultdblocation")
{
connectionString = "version=3,URI=file:"
+ System.Web.Hosting.HostingEnvironment.MapPath("~/Data/sqlitedb/mojoportal.db");
}
return connectionString;
}
I will be making a new release within a few days.
Thanks,
Joe