Using Prevalnece cache from NHibernate 1.0.1.0 contribution module I get the following error:
Code:
Line 75: ICriteria c = session.CreateCriteria(typeof(Module));
Line 76:
Line 77: IList l = c.List();
Source File: D:\inetpub\wwwroot\DT\Managers\ModuleManager.cs Line: 77
Stack Trace:
[IOException: The file "D:\inetpub\wwwroot\DTWeb\cache\00000000000000000002.commandlog" already exists.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +877
NHibernate.Caches.Prevalence.CacheSystem.Add(Object key, Object value) +0
NHibernate.Caches.Prevalence.PrevalenceCache.Put(Object key, Object value) +225
NHibernate.Cache.ReadOnlyCache.Put(Object key, Object value, Int64 timestamp, Object version, IComparer versionComparator) +325
NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) +665
NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session) +222
NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) +719
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) +75
NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) +274
NHibernate.Loader.CriteriaLoader.List(ISessionImplementor session) +632
NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria) +378
[ADOException: Unable to perform find]
NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria) +419
NHibernate.Impl.CriteriaImpl.List() +12
DTL.Managers.ModuleManager.List() in D:\inetpub\wwwroot\DT\Managers\ModuleManager.cs:77
DevTeamWeb.ctlModule.Bind() in D:\inetpub\wwwroot\DTWeb\ctlModule.ascx.cs:44
DevTeamWeb.ctlModule.Page_Load(Object sender, EventArgs e) in D:\inetpub\wwwroot\DTWeb\ctlModule.ascx.cs:40
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750
What can be wrong here?