I am new to SSH connection & trying to connect using SSH connection but getting exception:
Inheritance security rules violated while overriding member: 'Renci.SshNet.Common.SshException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'
Security accessibility of the overriding method must match the security accessibility of the method being overriden.
Please somebody help me to resolve this issue
Mark GetObjectData
with SecurityCriticalAttribute
, because it's applied to Exception.GetObjectData
. An overridden member should have the same security accessibility (Critical, Safe Critical or Transparent).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.