Server Error in '/' Application.

The database file is locked
database is locked

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SQLite.SQLiteException: The database file is locked
database is locked

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SQLiteException (0x80004005): The database file is locked database is locked] System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, String& strRemain) +832 System.Data.SQLite.SQLiteCommand.BuildNextCommand() +279 System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index) +18 System.Data.SQLite.SQLiteCommand.ExecuteNonQuery() +31 System.Data.SQLite.SQLiteConnection.Open() +2444 NHibernate.Connection.DriverConnectionProvider.GetConnection() +60 NHibernate.Impl.SessionFactoryImpl.OpenConnection() +39 [ADOException: cannot open connection] NHibernate.Impl.SessionFactoryImpl.OpenConnection() +94 NHibernate.AdoNet.ConnectionManager.GetConnection() +34 NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) +56 NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) +27 NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) +224 NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +201 NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +70 NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) +230 NHibernate.Loader.Collection.CollectionLoader.Initialize(Object id, ISessionImplementor session) +27 NHibernate.Persister.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) +29 NHibernate.Event.Default.DefaultInitializeCollectionEventListener.OnInitializeCollection(InitializeCollectionEvent event) +238 NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing) +93 NHibernate.Collection.AbstractPersistentCollection.Initialize(Boolean writing) +47 NHibernate.Collection.Generic.PersistentGenericBag`1.get_Count() +15 N2.ContentItem.IsAuthorized(IPrincipal user) +117 N2.Security.SecurityManager.IsAuthorized(ContentItem item, IPrincipal principal) +219 N2.Collections.AccessFilter.Match(ContentItem item) +78 N2.Collections.CompositeFilter.Match(ContentItem item) +107 N2.Collections.CompositeFilter.Match(ContentItem item) +107 N2.Collections.<Pipe>d__0`1.MoveNext() +362 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +7890452 N2.Collections.ItemList`1..ctor(IEnumerable`1 items) +36 N2.Collections.ItemList..ctor(IEnumerable`1 items, ItemFilter filter) +76 N2.ContentItem.GetChildren(ItemFilter filter) +141 N2.ContentItem.GetChildren(ItemFilter[] filters) +69 N2.Collections.HierarchyBuilder.GetChildren(ContentItem currentItem) +81 N2.Collections.TreeHierarchyBuilder.BuildHierarchyTree(ContentItem currentItem, Int32 remainingDepth) +139 N2.Collections.TreeHierarchyBuilder.BuildHierarchyTree(ContentItem currentItem, Int32 remainingDepth) +221 N2.Collections.TreeHierarchyBuilder.Build() +54 N2.Collections.HierarchyBuilder.Build(ItemFilter[] filters) +53 N2.Collections.ItemHierarchyNavigator..ctor(HierarchyBuilder builder, ItemFilter[] filters) +63 N2.Templates.Web.UI.WebControls.Menu.BuildControlHierarchy(ContentItem currentItem, ContentItem startPage) +411 N2.Templates.Web.UI.WebControls.Menu.CreateChildControls() +68 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +44 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975