Subsonic 亚音速3.0中等信任问题

Subsonic 亚音速3.0中等信任问题,subsonic,shared-hosting,medium-trust,subsonic-active-record,Subsonic,Shared Hosting,Medium Trust,Subsonic Active Record,我在中等信任度下运行亚音速时遇到问题,不知道我的查询是否错误-如果亚音速3.0.3的某些部分不喜欢中等信任度,有人能告诉我吗?不久前,有人发布了类似的消息,但对于它是否存在(bug)没有真正的回复。Rob说它已经过测试,而其他人说他们仍然需要bug() 我使用的查询如下所示: List<Data.Blog> objBlogPosts = ((from blog in db.Blogs orderb

我在中等信任度下运行亚音速时遇到问题,不知道我的查询是否错误-如果亚音速3.0.3的某些部分不喜欢中等信任度,有人能告诉我吗?不久前,有人发布了类似的消息,但对于它是否存在(bug)没有真正的回复。Rob说它已经过测试,而其他人说他们仍然需要bug()

我使用的查询如下所示:

List<Data.Blog> objBlogPosts = ((from blog in db.Blogs
                                            orderby blog.blogID descending 
                                             select blog).Take(10).ToList());
List objBlogPosts=((来自db.Blogs中的blog)
orderby blog.blogID
选择blog.Take(10.ToList());
我得到的错误是:

System.MethodAccessException: 
System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon) --->
System.Security.SecurityException: Request failed.
at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh)
at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh)
at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet)
at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet)
at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext)
at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.PermissionSet
The demand was for:
<PermissionSet class="System.Security.PermissionSet"
version="1"
Unrestricted="true"/>  
System.MethodAccessException:
System.Runtime.CompilerServices.StrongBox`1..ctor(System.\uu Canon)-->
System.Security.SecurityException:请求失败。
位于System.Security.CodeAccessSecurityEngine.ThrowSecurityException(程序集asm、已授予的权限集、已拒绝的权限集、RuntimeMethodHandle rmh、SecurityAction操作、对象请求、IPermission Permthapped失败)
位于System.Security.CodeAccessSecurityEngine.ThrowSecurityException(对象程序集或字符串、已授予的权限集、已拒绝的权限集、RuntimeMethodHandle rmh、SecurityAction操作、对象请求、失败的IPermission Permthapped)
位于System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet授权、PermissionSet拒绝、PermissionSet要求、RuntimeMethodHandle rmh、对象汇编或字符串、SecurityAction操作、布尔ThroweException)
在System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet-demandSet,PermissionSet&alteredDemandset,RuntimeMethodHandle rmh)中
在System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset,RuntimeMethodHandle rmh)中
位于System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32标志,PermissionSet grantSet)
at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32标志,PermissionSet grantSet)
位于System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32权限、PermissionSet targetGrant、CompressedStack securityContext)
位于System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32权限,PermissionSet targetGrant)
失败的操作是:
需要
第一个失败的权限的类型是:
System.Security.PermissionSet
要求是:
提前谢谢。喜欢新的亚音速和lambda等,只是在部署到我的第一个共享主机时遇到问题:(

干杯
Doug

编辑-该漏洞现已修复,3.1版在发布时将支持中等信任,如果您从github获取最新版本的源代码并自行构建,您应该会发现它现在在中等信任下工作


看起来您遇到了错误。如果您可以在错误报告中添加更多详细信息,例如可能会有帮助的最小测试用例。

亚音速在共享主机场景中不起作用(无论如何,对于那些具有中等信任度的场景)。问题是这一行

Func<IQueryable> fn = efn.Compile();
Func fn=efn.Compile();
也许等3.1或者2.0,因为亚音速现在绝对不是一个选项。这是一个好主意,但令人遗憾的是,脖子上的胡子没有告诉他们的用户这个问题

至少他们教我要包括

<system.web>
    <trust level="Medium" />
</system.web>


在我的web.config中,用于共享托管站点的任何开发。

我将尝试在今晚发布一个sql脚本和演示项目,但同时必须有人让它工作-如何?我在部署到中等信任时遇到了相同的问题。是否有可用的修复方法?该错误是3个多月前发布的,我可以我不相信还没有人将亚音速3.0发布给中等信任。今天有人说,新的亚音速3.1在中等信任下运行良好-我认为他们已经解决了所有问题。这很令人兴奋,因为我一直在等待升级我的项目,直到这是一条好消息!你有链接吗?我知道这是一个已知的问题,但事实并非如此3.1的已确认修复。