Back to Devexpress

SessionMixingException Class

xpo-devexpress-dot-xpo-dot-exceptions-eab54aa7.md

latest1.4 KB
Original Source

SessionMixingException Class

An exception that is thrown when a persistent object that belongs to a specific session is used within another session or refers to an object from another session.

Namespace : DevExpress.Xpo.Exceptions

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public class SessionMixingException :
    Exception
vb
Public Class SessionMixingException
    Inherits Exception

Remarks

A persistent object can refer to another object if it belongs to the same session. Also an object can be used only within a session that it belongs to. If any of these rules are violated a SessionMixingException exception will be thrown.

Solution:

  • ensure that your code meets the rules described above.

Inheritance

Object Exception SessionMixingException

See Also

SessionMixingException Members

DevExpress.Xpo.Exceptions Namespace