[Mono-list] System.Security.Policy.Evidence::GetHostEvidence<[1]>()

Sebastien Pouliot sebastien.pouliot at gmail.com
Wed Feb 27 13:45:12 UTC 2013


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 <lists at 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.cabral at 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 at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list