Closed GoogleCodeExporter closed 9 years ago
based on MSDN this class and library can not use in medium trust
because ISerializable.GetObjectData has SecurityCriticalAttribute
http://msdn.microsoft.com/en-us/library/system.security.securitycriticalattribut
e.aspx
"The SecurityCriticalAttribute is equivalent to a link demand for full trust. A
type or member marked with the SecurityCriticalAttribute can be called only by
fully trusted code; it does not have to demand specific permissions. It cannot
be called by partially trusted code."
so need to change some codes to run on medium trust
Original comment by mahdi.us...@gmail.com
on 27 Jun 2013 at 7:40
Have you tried the portable library build for medium trust environments? I
believe this excludes serialization.
Original comment by Grig...@gmail.com
on 20 Jul 2013 at 4:38
I suspect this was actually fixed by
https://code.google.com/p/protobuf-csharp-port/source/detail?spec=svn08d8d8b8ae3
dfb871627233f966711a89de767aa&r=d3c7c6a1e16e84c6c3656fb39ea9b9a916fad428
which adds [SecurityCritical] to the relevant methods. Closing as fixed - can
be reopened if it doesn't work, of course.
Original comment by jonathan.skeet
on 15 Feb 2015 at 5:09
Original issue reported on code.google.com by
mahdi.us...@gmail.com
on 24 Jun 2013 at 6:16