2009-12-09 1 views
1

Lucene .NET을 GoDaddy에서 부분적으로 만 사용할 수 있습니다. 다음 줄에 보안 예외가 발생합니다.Lucene .NET 2.3.2 보안 예외 - 중간 트러스트 문제

조회수 hits = searcher.Search (query, filter); 누군가가 내가 중간에서 완벽하게 작동 할 수있는 코드를 조정할 수있는 방법을 알게 될 것입니다 경우

나는 GoDaddy를 포기하고 DiscountASP로 이동하기 전에
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 

    [SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] 
    WeakHashTable.set_Item(Object key, Object value) in SupportClass.cs:1231 
    Lucene.Net.Search.CachingWrapperFilter.Bits(IndexReader reader) in CachingWrapperFilter.cs:69 
    Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, HitCollector results) in IndexSearcher.cs:175 
    Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs) in IndexSearcher.cs:156 
    Lucene.Net.Search.Hits.GetMoreDocs(Int32 min) in Hits.cs:104 
    Lucene.Net.Search.Hits..ctor(Searcher s, Query q, Filter f) in Hits.cs:67 
    Lucene.Net.Search.Searcher.Search(Query query, Filter filter) in Searcher.cs:57 
    details.RetrieveDocument() in d:\hosting\5304481\html\details.aspx.cs:42 
    details.Page_Load(Object sender, EventArgs e) in d:\hosting\5304481\html\details.aspx.cs:28 
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 
    System.Web.UI.Control.OnLoad(EventArgs e) +99 
    System.Web.UI.Control.LoadRecursive() +50 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 
    System.Web.UI.Page.ProcessRequest() +80 
    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 
    System.Web.UI.Page.ProcessRequest(HttpContext context) +49 
    ASP.details_aspx.ProcessRequest(HttpContext context) in App_Web_pux0zsik.0.cs:0 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 

, 내가 확인하고 싶었 : 여기

이 예외의 세부 사항입니다 신뢰 환경.

감사합니다.

답변

1

Lucene.Net을 중간 정도의 신뢰로 작동시키는 데 다른 질문에 답했습니다. 이것은 최신 버전의 라이브러리에 있습니다.

Lucene.NET in medium trust

+0

또한 @NerdFury가 가리키는 게시물에 내 대답을 참조하십시오. – Rippo