2014-09-05 1 views
4

Castle.Core 신뢰 수준은, 내가 this answer을 읽고내 MVC 프로젝트는 내가 웹에 출판했다 로컬 호스트에서 제대로 실행되었던 문제

Inheritance security rules violated while overriding member: 'Castle.MicroKernel.DefaultKernel.InitializeLifetimeService()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Inheritance security rules violated while overriding member: 'Castle.MicroKernel.DefaultKernel.InitializeLifetimeService()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: Inheritance security rules violated while overriding member: 'Castle.MicroKernel.DefaultKernel.InitializeLifetimeService()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.] Castle.Windsor.WindsorContainer..ctor() +0 Blog.Core.Bootstrapper.Start(Assembly[] assemblies) +130 Blog.MvcApplication.Application_Start() +970

이 오류를했다.

캐슬 프로젝트를 해당 지침으로 다시 컴파일했습니다. 내 프로젝트에서 Castle.Core.dll을 안전하게 삭제하고 Castle.Core.dll을 다시 컴파일하여 추가했습니다. 하지만 여전히 같은 오류가 있습니다.

어떻게해야합니까? 지난 2 주 동안 내가 어려움을 겪고있는이 문제를 어떻게 해결할 수 있습니까?

+0

소리 환호를 작동 할 수있다. – user3210546

+0

@user3210546 네, 저의 호스팅 서비스는 허용되지 않습니다. 해결책을 찾아야합니다. –

답변

0

사용자는 완전 신뢰를 지원하는 호스팅 제공 업체를 찾아야합니다. ASP.Net 친화적 인 대부분의 제공 업체는 요즘에없는 진정한 이유가 없으므로 완전 신뢰를 지원합니다.

귀하의 질문에 대한 답변 일 가능성이 큽니다.

0

이 나에게,

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

가의 Web.config에 그 시도는 IIS/반사 문제와 같은

관련 문제