Community.Serve/Global.asax.cs
@@ -7,6 +7,7 @@ using System.Web; using System.Web.Http; using System.Web.Routing; using System.Configuration; namespace Community.Serve { @@ -14,7 +15,8 @@ { protected void Application_Start() { SQLiteHelper.DB = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "bin\\App_Data\\Community.db"); //SQLiteHelper.DB = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "bin\\App_Data\\Community.db"); SQLiteHelper.DB = ConfigurationManager.AppSettings["db"]; GlobalConfiguration.Configure(WebApiConfig.Register); }