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
-
S4 / 1.984 cc / 200 PS / 207 ft/lb (280 Nm) @ 1.700 - 5.000 / turbo / AWD (click images for a larger view)
-
V8 / 4.200 cc / 440 PS / 347 lb/ft (470 Nm) @ 2.700 Vmax: 185 mph (300 km/h) (click images for a larger view)
-
you can see in a post or two http://justacarguy.blogspot.com/2012/07/batmobile-tumbler-from-batman-rises-of.html how perfectly this look...
-
The Internet would not be complete without the the 12 days of Art Cars song to commemorate this Christmas Eve. So here is my attempt at crea...
-
Phil and Derek and Chris (I'm hoping I didn't leave anyone out) did a slot demo over the 4th of July holiday in their hometown in Ne...
-
via There, I fixed It This fantastic Swing Set Car Budget Mod is brought to you by There, I fixed It , a very disturbing photo indeed. Its e...
-
Morning, Friends! If you haven't checked out Kindle Fire Department yet and you own a Kindle Fire, you are not human. I'm TELLING YO...
-
1) "You can have your breakfast longer. You get back for dinner sooner. Is there a better family car?" 2) "You get suntanned ...
-
This site will feature both realistic and science fiction concept vehicle renders. It is a companion to the CONCEPTSHIPS and the CONCEPTROB...
No comments:
Post a Comment