在Visual Studio中运行WCF服务时,我看到Debug输出中出现了大量异常信息。
A first chance exception of type 'System.ServiceModel.FaultException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.ServiceModel.Channels.dll
它们似乎不规则地被抛出:无论如何,我都没有能够找出任何模式(即从每几秒钟到几十秒)。
如果我将调试设置为在FaultException
上断点,我会看到它们是由System.ServiceModel.Dispatcher.ErrorBehavior.ThrowAndCatch(Exception e, Message message)
抛出的。
异常消息是{"The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree."}
。
显而易见的答案似乎是“你的地址为空”。但这发生在任何客户端连接之前。
这只是“正常”的还是我做错了什么的症状?