Closed CWolffIF closed 3 years ago
can u test it without the audittrail? if we do not have exact repro steps resolving it can be the game of 20 questions
In my DEMO Project it works with Audittrail and without Audittrail. How can I debug it in my main project ? The error comes once per View and than never again in the same View.
The error appears even if no View is open.
the symbols are distributed, I am sure you are aware of this you only need to enabled them and set the Break On Error
https://github.com/eXpandFramework/eXpand/wiki/HowToDebug
Hi Tolis, the symbols are loaded, but how to "set the Break On Error"?
VS menu debug/windows/exception settings and then check the CLR exception this will break on the exception location
note debugging this module is not trivial at all
i would load the XAF symbols as described in https://github.com/eXpandFramework/DevExpress.XAF/wiki/How-to-boost-your-DevExpress-Debugging-Experience then add a breakpoint into the dispose of the UnitOfWork and try to see what is happening.
Maybe my screenshot helps. "o" is null. There is a unitofwork in "space" but is seemed to be allready disposed.
i understand where it throws I could blind safe guard it however I prefer to see what happens before and your post does not help.
After a time
what the log says?
Hi Tolis,
thanks for your help. I think I got it. "After a time" was the key. When I run the app and do nothing than after a time the error occurs. So I looked in all timed events and I found code that a derived Session dispose. I donยดt know why at all und I donยดt why the code runs in 20.1.402. But this the error.
since you closed the case, my understanding is that is not relate to the module?
Yes you are right.
There is an error in my code. In 20.1.402 it works without error, in 20.1.70x not. But the reason was in my code.
unfortunately it loks like the #737 fix causes issues
The pre-release 2.201.15.4 in the DevExpress.XAF lab
branch includes commits that relate to this task:
To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all.
Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.
If you do not use these packages directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.
Thanks a lot for your contribution.
After a time I get the ObjectDisposedException error. Maybe it is affected by the Autitrail.
iXISXRM.Win.exe Error: 0 : 04.09.20 15:39:46.066 ================================================================================ The error occurred:
Objektname: "DevExpress.Xpo.UnitOfWork(57)". Data: 0 entries Stack trace:
bei DevExpress.Xpo.Session.Connect() bei DevExpress.Xpo.Session.get_ObjectLayer() bei DevExpress.Xpo.Session.get_DataLayer() bei DevExpress.Persistent.AuditTrail.AuditDataStoreb_5(Object o) in D:\a\1\s\src\Modules\SequenceGenerator\SequenceGeneratorService.cs:Zeile 195.
bei System.Reactive.Linq.ObservableImpl.Do`1.OnNext..OnNext(TSource value) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Do.cs:Zeile 38.
InnerException is null
2.Save(Session session, List
1 itemsToSave, IAuditTimestampStrategy timestampStrategy, String currentUserName) bei DevExpress.Persistent.AuditTrail.AuditTrailService.SaveAuditDataByDefault(Session session, List1 itemsToSave) bei DevExpress.Persistent.AuditTrail.AuditTrailService.InternalSaveAuditData(Session session, List
1 itemsToSave) bei DevExpress.Persistent.AuditTrail.AuditTrailService.SaveAuditData(Session session) bei DevExpress.ExpressApp.AuditTrail.Helpers.AuditTrailHelper.ObjectSpace_Committed(Object sender, EventArgs e) bei System.EventHandler.Invoke(Object sender, EventArgs e) bei DevExpress.ExpressApp.BaseObjectSpace.OnCommitted() bei DevExpress.ExpressApp.BaseObjectSpace.CommitChanges() bei Xpand.XAF.Modules.SequenceGenerator.SequenceGeneratorService.<>c__DisplayClass25_1.