Keep in mind that Mono does not support CAS. So even implemented (CAS) methods might not return the values you expect.
On Wed, Feb 27, 2013 at 4:41 AM, Daniel Lo Nigro <li...@dan.cx> wrote: > According to this page, Evidence.GetHostEvidence<T> is not yet implemented > in Mono. > > http://go-mono.com/status/status.aspx?reference=4.0&profile=4.0&assembly=mscorlib > > > > > On Wed, Feb 27, 2013 at 2:07 PM, nelson <nelson.cab...@gmail.com> wrote: >> >> I'm trying to embed mono and this line of managed code : >> >> StrongName fullTrustAssembly = >> typeof(Class10).Assembly.Evidence.GetHostEvidence<StrongName>(); >> >> Triggers this error : >> >> Missing method System.Security.Policy.Evidence::GetHostEvidence<[1]>() in >> assembly C:\Program Files (x86)\Mono-3.0.3\lib\mono\4.5\mscorlib.dll, >> referenced in assembly C:\Users\Nelson\Documents\Visual Studio >> 2010\Projects\EmbeddedMonoTest\Debug\ClassLibrary1.dll >> >> Unhandled Exception: >> System.MissingMethodException: Method not found: >> 'System.Security.Policy.Evidence.GetHostEvidence'. >> [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method >> not >> found: 'System.Security.Policy.Evidence.GetHostEvidence'. >> >> Any idea of what I missed ? >> >> >> >> -- >> View this message in context: >> http://mono.1490590.n4.nabble.com/System-Security-Policy-Evidence-GetHostEvidence-1-tp4658751.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> _______________________________________________ >> Mono-list maillist - Mono-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list