2011-01-31 249 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

请张贴满异常堆栈跟踪 – 2011-01-31 17:09:14

回答