Windows Vista Beta | WinVistaBeta.com - Message | Channel Faulted exception on service call when operation returns n

September 07, 2008  
Subject: Channel Faulted exception on service call when operation returns n
Group: microsoft.public.windows.developer.winfx.indigo
Date: 1/31/2008 1:55:03 PM
From: =?Utf-8?B?bmV3QmVl?= [Email Address Protection]

I have a operation contract
Stream GetLogs()

If I return null for some reason on the service side, the client gets a
channel faulted exception - "The communication object,
System.ServiceModel.Channels.ServiceChannel, cannot be used for communication
because it is in the Faulted state.". Any ideas if I need to specify
something in config file? I am using WSDualHttpBinding binding. If I return a
valid stream object, I ndon't see this exception

Back