I was experimenting with a WCF Worker Role for my Cloud sample and I encountered this error for my Workflow Service.
"The channel received an unexpected fault input message while closing. The fault reason given is: 'The message with To 'net.tcp://localhost:18090/ExpenseWorkflowService' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.'"
I read that I will need to put an attribute like the following on my WCF Service
[ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)]
Errr... the problem is, this is a WorkflowService and it only contains a .xaml file. So, how am I going to decorate a ServiceBehavior attribute on it?
After searching for a while, I can't seem to find anything on the Internet. There was this suggestion of creating a custom behavior to do it but I felt that it was a little overkill and there must be an easier way.
I ran a trace on my ExpenseService and found out that ServiceBehaviorAttribute was one of the Behaviors. So, I went to add the following for my ExpenseWorkflowService in the host code and it works!
// Set AddressFilterMode
ServiceBehaviorAttribute serviceBehavior = new ServiceBehaviorAttribute();
serviceBehavior.AddressFilterMode = AddressFilterMode.Any;
_wfSvcHost.Description.Behaviors.Add(serviceBehavior);
Home » Windows Azure » Setting AddressFilterMode
Setting AddressFilterMode
01:12
Jurnalis Jalanan
Labels:
.NET,
Cloud Computing,
Layered Architecture,
Windows Azure
Popular Post
-
On March 27 the debut album from noise pop (or so they are labeled) Scottish act Strawberry Whiplash is finally being released by Matinée R...
-
Shaka (South Africa) The Shaka Nynya, Shaka named after the founder of the Zulu nation, Chaka. Nynya is an anglicized Zulu word meaning Prow...
-
I've been silent. Cuz I've been working. On what? you ask? Drum roll, please..... In collaboration with Beyond the Page Publishing ,...
-
A few more hours and it's weekend. Though I hardly drank any alcohol, I'm still trying to recover from that trip to London . Think I...
-
Feels like they've been recording forever, but the self-titled Helsinki Poetry debut EP is finally available ; free to download for the...
-
As if to demonstrate how backward this region is, today we hear that a £200 million is to be spent on that most outmoded, backward and 19t...
-
I was experimenting with a WCF Worker Role for my Cloud sample and I encountered this error for my Workflow Service. "The channel recei...
-
I t was so rush for me till I had no time to enter an entry to my blog before I left for Seattle. As much as I could remember, it was a dark...
-
So, yeah. There's always a simmering debate among writers about whether or not to respond to bad reviews. In one recent article titled W...
-
The Detroit News has the alternative fuel breakdown in the president's budget request, and it isn't pretty. Increases for hydrogen ...
No comments:
Post a Comment