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...
-
I think this dash must be Bakelite, the fore runner of plastic
-
There has never been a shortage of stories in the press denigrating plug-in electric cars. Why? Because people naturally, logically believe ...
-
V12 / 5.935 cc / 510 PS / 420 ft/lb (570 Nm) @ 5.750 / 0 - 62 mph (100 km/h): 4,5 s / Vmax: 190 mph (305 km/h) (click images for a larger ...
-
V6 / 2.451 cc / 120 PS / 127 ft/lb (172 Nm) @ 3.500 / Vmax: 115 mph (185 km/h) (click images for a larger view)
-
Make/Model: 1951 Studebaker Commander via We got The Muppet Movie today from Netflix and it so happened that there was an art car in it. Th...
-
Check out new track from Choir of Young Believers . Quite haunting, somewhat eerie, beautiful in its own special way though I cannot help th...
-
Five Books that Influenced Me Most by Chicki Brown Thanks for inviting me to share with your readers, Rachel. If there’s one thing I love to...
-
V8 / 4.244 cc / 400 PS / 333 lb/ft (451 Nm) @ 4.500 / 0 - 62 mph (100 km/h): 5,2 s / Vmax: 171 mph (275 km/h) / One-off collector piece (cli...
No comments:
Post a Comment