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
-
Vadim, creator of the Tango commercial, has just graphically assembled the whole roll cage with door bars. Because the door bars were integr...
-
From the JP Slot.net store website: Universal Chassis Slot Kit to adapt 1:43 static vehicles or similar to Slot. Includes complete mechan...
-
New 7" single release is coming up on Cloudberry Records . It's by Sweden 's Youngfuck and lead track (a-side/wha...
-
It's a shame the video on TMZ.com doesn't include the reporter's voiceover, because the narration I heard when the story aired ...
-
Photo: Diane Edwardson, September 23, 2011, 6:27 PM. Here's an overexposed shot of yesterday's spider. Check out the cross and shi...
-
All the Batman vehicles On display in “The Batcave”: all six Batmobiles from television and film! For the first time ever, Comic-Con fans wi...
-
The California Air Resources Board may still be living in an alternate universe where hydrogen and fuel cell vehicles are making meaningful ...
-
There's much I should be blogging these days and hopefully will shortly. The pathetic CARB staff ZEV recommendations ( here ); Bob Lutz...
-
This retro 70's orange carpeted plushy art car is MMMM Soft. No need for air bags, no need for seat belts. During an accident you just ...
No comments:
Post a Comment