gpt4 book ai didi

asp.net - 中等信任 Glimpse

转载 作者:行者123 更新时间:2023-12-02 21:16:58 26 4
gpt4 key购买 nike

有什么办法可以得到Glimpse在 Medium Trust 工作?

如果我设置<glimpse enabled="true"/>在我的 web.config 中,我收到一个安全异常:

   [SecurityException: Request failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(PermissionSet permSet, StackCrawlMark& stackMark) +31
System.Security.PermissionSet.Demand() +68
System.Security.CodeAccessSecurityEngine.CheckGrantSetHelper(PermissionSet grantSet) +57
System.Reflection.Emit.AssemblyBuilder.nCreateDynamicAssembly(AppDomain domain, AssemblyName name, Evidence identity, StackCrawlMark& stackMark, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, Byte[] securityRulesBlob, Byte[] aptcaBlob, AssemblyBuilderAccess access, DynamicAssemblyFlags flags, SecurityContextSource securityContextSource) +0
System.Reflection.Emit.AssemblyBuilder..ctor(AppDomain domain, AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource) +198
System.Reflection.Emit.AssemblyBuilder.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource) +125
System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 assemblyAttributes, SecurityContextSource securityContextSource) +43
System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access) +42
System.ComponentModel.Composition.MetadataViewGenerator..cctor() +257

据我所知,该错误与描述的错误类似here 。基本上,当应用程序在中等信任度下运行时,MEF 无法完成填充实现特定接口(interface)的元数据实例的技巧。

最佳答案

不幸的是,目前 Glimpse 需要完全信任,您可以提交 enhancement request有了它们,大多数功能也应该在中等信任中可用。

关于asp.net - 中等信任 Glimpse ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6264765/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com