Hello, referring to Domain Resource Usage problem and according to the answer mentioned in it, We are trying to upgrade from v4.6.4 to v5.0.5, but we have errors that wasn't exist in the previous version (those errors appeared after do the required changes and run the application).
1. during a regular linq query, an exception fired requires an open transactions, so I opened a transaction (using session.openTranasction()) and it worked but I don't know if this will be appeared again or not. the second error which stopped me from complete the upgrade is "Can not persist: there are pinned entities". when complete a transaction which contains a change in entities. the Stack Trace is:
at Xtensive.Orm.Session.Persist(PersistReason reason)
at Xtensive.Orm.Session.CommitTransaction(Transaction transaction)
at Xtensive.Orm.Transaction.Commit()
at Xtensive.Orm.TransactionScope.Dispose()
at Microtech.Andalus.Business.Features.SaveFeatures(XmlDocument document, Guid cdkey) in d:\Work\FrameWork\Microtech.Andalus.Business\Core\Features.cs:line 95
at Microtech.Andalus.Security.SecurityService.ValidateAndUpdateLoginTime() in d:\Work\FrameWork\Microtech.Andalus.Business\Security\SecurityService.cs:line 2508
at Microtech.Andalus.Security.AndalusMembershipProvider.ValidateUser(String username, String password) in d:\Work\FrameWork\Microtech.Andalus.Business\Security\AndalusMembershipProvider.cs:line 462
at Microtech.Infinity5.Web.Security.Login.ASPxBtnValid_Click(Object sender, EventArgs e) in d:\Work\Application\Microtech.Infinity5.Web\Security\Login.aspx.cs:line 311
Please, inform me with the solution or if I have to follow a specific instruction during upgrade.
thanks
asked
Jul 21 '15 at 03:02
ahmad emad
26●29●29●31
Hello ahmad emad.
What SessionOptions are enabled for session in which you faced with this exception? We've done some changes in Persist process and changed some SessionOptions.
Hello Alexey,
we use the following Session configuration in web.config (also, the session's domain is used by SessionManager): <session name="Default" options="LegacyProfile,AllowSwitching,ReadRemovedObjects" commandtimeout="3000"/>