2011-01-31 9 views
0

내가 사용 debuging을위한 가짜 인증 서비스를 등록 트링 오전 :성 윈저 Castle.MicroKernel.ComponentRegistrationException

container.Register(Component 
    .For<Services.IFormsAuthenticationService>() 
    .ImplementedBy<Services.DebugAuthenticationService>()); 
Services.DebugAuthenticationService의 implementes Services.IFormsAuthenticationService

는하지만이 오류가

:

유닛 테스트 어댑터 예외가 발생했습니다. 유형이 'Castle.MicroKernel.ComponentRegistrationException, Castle.MicroKernel, Version = 2.1.0.0, Culture = neutral, PublicKeyToken = 407dd0808d44fbdc '..

+2

내가 생각하는 전체 예외 스택 추적 –

+0

을 게시하시기 바랍니다 이미 다른 구현에 등록 된 인터페이스 IFormsAuthenticationService becuase이 얻을 :

여기에 제대로 Component.For ... ImplementedBy를 사용하는 예를 찾을 수 있습니다. 등록을 취소 할 수있는 방법이 있습니까? 아니면 바꿀까요? –

+0

전체 예외 스택 추적을 게시하십시오. –

답변