Hello, we are developing an asp.net web application which has two database one called "Master", which holds security and administration tables and another called "Company"(may be more than one company, which hold business tables), we are using SessionManager to manage "Master" database's sessions (as there is only one master database) and manually manage company database's sessions. the master database and the company database have UpgradeMode = "Perform". sometimes after leave the published application without interaction (may be one day or more), then try to use it we find that master database tables are empty, we can't find any reason or a startpoint to catch the error (it happens very few times, nearly 2 times in the last few months), and we aren't sure if this happens due to a recereation to the database or not. After add logging to build database, the following exception(s) happened : Error Building Company DB: at Xtensive.Core.LockableExtensions.EnsureNotLocked(ILockable lockable) at Xtensive.Collections.TypeRegistry.Register(Type type) at Xtensive.Orm.Configuration.Internals.DomainTypeRegistrationHandler.Process(TypeRegistry registry, TypeRegistration registration, Type type) at Xtensive.Collections.TypeRegistrationProcessorBase.Process(TypeRegistry registry, TypeRegistration registration) at Xtensive.Collections.TypeRegistry.ProcessPendingActions() at Xtensive.Collections.TypeRegistry.Lock(Boolean recursive) at Xtensive.Orm.Configuration.DomainConfiguration.Lock(Boolean recursive) at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.Build(DomainConfiguration configuration) at Xtensive.Orm.Domain.Build(DomainConfiguration configuration) at Microtech.Andalus.Business.DomainManager.BuildCompany() in D:\Fawzy\SVN\Framework\Microtech.Andalus.Business\Core\DomainManager.cs:line 63 Error Building Company DB: []Instance is locked. |
Dear Ahmad Emad, This is not expected behavior in any case. I'd suggest you to set Hope that helps. |
Hello Ahmad. This might happen if you use single
DomainConfigration
for building twoDomains
. Could you check your code for that?Hello Dmitri, no, but i think may be 2 user connect (log in to the application, we build the domains on first request) to build the same domain(database) but with 2 different DomainConfigration.
I could send you the class we use to build the domains for our database by mail if you need that.
Could you please send relevant code to support@dataobjects.net This would help us resolve your issue.
hello Denis, as our project is large i need to know just what code should i send(our application consists of many projects).
You've said you're using session manager for creating one domain. It would be useful to see the code that creates the second domain.