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
-
This wooden Harley made from 4x4 pieces of wood is for the rider who is tough as nails.
-
I have just gotten a MacBook Pro for work and like all the other notebooks before it, the first thing I would do is to install Windows Serve...
-
Carloft Berlin, 10 loft suites + 1 panorama loft penthouse (click images for a larger view)
-
No technical specification available (click images for a larger view)
-
V8 / 3.523 cc / 335 PS / 381 lb/ft (517 Nm) @ 3.650 / supercharger (click images for a larger view)
-
I'm a sexy mix between the The Multi-tasker and the All-the-Timer/Compulsive/Voracious/Anything Goes Reader. What are you? What Kind ...
-
On your behalf; on behalf of the hard-pressed tax-farmed motorists of the car-driven economic powerhouse that is Aberdeen "City and Shi...
-
Two quick recommendations sent my way by the always reliable J.A. Probably no coincidence that one of the tracks by Sweden ’s Alpaca Sport...
-
Recently, I cyber-chatted with lovely Italian blogger Serena Gobbo over at her site, Librini (little books). We covered writing, books, mult...
No comments:
Post a Comment