중간 신뢰의 Subsonic을 실행하는 데 문제가 있으며 내가 잘못 쿼리하고 있는지 알 수 없습니다. 중간 신뢰를 좋아하지 않는 3.0.3 하위 버전이있는 경우 누군가 말해줘? 다른 사람이 전에 비슷한 것을 올렸고 실제로 존재했는지 여부에 대한 진정한 답이 없었습니다 (버그). 다른 사람이 (SubSonic 3.0 - Medium Trust)Subsonic 3.0 중간 신뢰 문제
내가 다음과 같습니다 쿼리를 사용하고 그들은 여전히 버그라고 말했습니다 동안 롭, 그것을 테스트했다 :
List<Data.Blog> objBlogPosts = ((from blog in db.Blogs
orderby blog.blogID descending
select 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"/>
미리 감사드립니다. 처음 공유 호스트 :(
환호 덕에 배포 새로운 아음속 및 람다의 등 만 가지고 문제를 사랑
중간 트러스트에 배포 할 때 동일한 문제가 발생합니다. 이 문제에 대한 해결책이 있습니까? 버그는 3 개월 전에 게시되었지만 아직 아무도 SubSonic 3.0을 중간 정도의 신뢰 수준으로 게시하지 못했습니다. – Radu094