StreamInvalidLockException is thrown if the current lock handle becomes invalid.

Namespace: Alachisoft.NCache.Runtime.Exceptions
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
[SerializableAttribute]
public class StreamInvalidLockException : StreamException, 
	ISerializable
Visual Basic
<SerializableAttribute>
Public Class StreamInvalidLockException
	Inherits StreamException
	Implements ISerializable
Visual C++
[SerializableAttribute]
public ref class StreamInvalidLockException : public StreamException, 
	ISerializable

Remarks

CacheStream opened for reading or writing mode acquires read or writer lock. Suppose there are two cache clients. First opens stream for either reading/writing. Before first client closes the stream, it is removed from the cache due to expiration or eviction. Now at this moment second client opens a fresh stream. If first client performs any operation on the stream, his lock handle becomes inavlid and StreamInvalidLockException is thrown.

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    Alachisoft.NCache.Runtime.Exceptions..::..CacheException
      Alachisoft.NCache.Runtime.Exceptions..::..StreamException
        Alachisoft.NCache.Runtime.Exceptions..::..StreamInvalidLockException

See Also