尝试使用安全透明方法'x'来访问安全关键方法'System.Runtime.InteropServices.GCHandle.Alloc(System.Object)'失败

时间:2015-03-25 13:17:55

标签: asp.net-mvc devexpress

我有一个由Devexpress创建的MVC应用程序。我在

上收到此错误

www.site.com/Accoun/Login

Attempt by security transparent method 'DevExpress.XtraScheduler.Native.   
FullTrustAppointmentMultiClientCacheItem.CreateHandler()' to access security critical method 'System.Runtime.InteropServices.GCHandle.Alloc(System.Object)' failed.

Assembly 'DevExpress.XtraScheduler.v13.2.Core, Version=13.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' is partially trusted, 
which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself.  
In order to access security critical code, this assembly must be fully trusted.

我该如何解决?

1 个答案:

答案 0 :(得分:1)

如果不了解这种情况的所有方面,很难提出建议。您应该report this issue直接向DevExpress支持团队提供详细信息。我相信他们的人可以诊断出错误并指出你在MVC环境中使用Scheduler的正确方向。

相关支持文章:ASPxScheduler and Medium Trust