0

我正在通过 xml 配置使用城堡 Windsor。最近在构造函数输入参数中添加新依赖项后出现此错误。知道如何在 Windsor 依赖项 xml 文件中提供覆盖。

Cycle detected in configuration.
Component class1 has a dependency on class2 but it doesn't provide an override.
You must provide an override if a component has a dependency on a service that it - itself - provides

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at IOrderApplicationService.method1()
   at OrderApplicationServiceClient.method1()
4

1 回答 1

0

您是否尝试过文档中详述的方法?

于 2013-07-24T22:13:08.747 回答