2011-01-31 16 views
0

私が使用してデバッグのために偽の認証サービスを登録するにはトリングています:城ウィンザー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

完全な例外スタックトレース –

答えて

関連する問題