2

중간 신뢰의 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"/> 

미리 감사드립니다. 처음 공유 호스트 :(

환호 덕에 배포 새로운 아음속 및 람다의 등 만 가지고 문제를 사랑

+0

중간 트러스트에 배포 할 때 동일한 문제가 발생합니다. 이 문제에 대한 해결책이 있습니까? 버그는 3 개월 전에 게시되었지만 아직 아무도 SubSonic 3.0을 중간 정도의 신뢰 수준으로 게시하지 못했습니다. – Radu094

답변

1

아음속 (Subsonic)은 공유 호스팅 시나리오에서 작동하지 않습니다 (어쨌든 보통 신뢰를 갖는 시나리오). 문제는

Func<IQueryable> fn = efn.Compile(); 

어쩌면 3.1 기다리거나 음속이 순간에 옵션이 절대 아니므로 2.0로 이동 ...이 라인입니다. 좋은 생각 이었지만 목에 수염을 쓴 사람이이 문제에 대해 사용자에게 알리지 않는 것은 슬픈 일입니다.

은 적어도 그들이 공유 호스팅 사이트에 대한 모든 개발에 대한 내 Web.config의에서
<system.web> 
    <trust level="Medium" /> 
</system.web> 

을 포함하도록 가르쳐.

+0

오늘 새로운 아음속 3.1은 중간 신뢰로 잘 돌아갈 것이라고 말했고 모든 문제를 해결했다고 생각합니다. 이 작업이 완료 될 때까지 프로젝트를 업그레이드하기 위해 기다렸던만큼 재미 있습니다. – Doug

+1

우수 뉴스! 링크가 있습니까? 알려진 문제이지만 3.1에 대한 확인 된 수정 사항이 아니라는 것을 알고있었습니다. – Brett

1

편집 - 버그는 현재 출시 때 매체 신뢰를 지원, 버전 3.1을 고정하면됩니다 github에서 최신 버전의 소스를 가져 와서 직접 빌드하면 중간 신뢰에서 작동한다는 것을 발견해야합니다.

버그가 this 버그와 관련이있는 것처럼 보입니다. 버그에 대한 자세한 내용을 추가 할 수 있다면 도움이 될 수있는 가능한 가장 작은 테스트 케이스와 같은 보고서.

+0

나는 SQL 스크립트와 데모 프로젝트를 오늘 밤 올리려고 노력할 것이다. 그러나 의미있는 시간에는 그것이 작동하는 누군가가 있어야한다. – Doug