Visual Studio 内で WCF サービスを実行すると、デバッグ出力に大量の例外が表示されます。
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
それらは不規則に投げられるようです: いずれにせよ、私はどのようなパターン (つまり、数秒ごとから数十秒まで) も特定できませんでした。
debug を break on に設定すると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."}
.
明らかな答えは、「まあ、あなたのアドレスは空です」と思われるでしょう。ただし、これはクライアントが接続する前に発生します。
これは単なる「正常」ですか、それとも私が間違っていることの兆候ですか?