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
-
S6 / 2.788 cc / 170 PS / 174 lb/ft (235 Nm) @ 3.700 / Vmax: 130 mph (210 km/h) (click images for a larger view)
-
Photo: Diane Edwardson, February 28, 2012, 9:33 AM. This is the only shot I got of the Kestrel sitting atop one of the young California Bla...
-
V8 / 4.973 cc / 231 PS / Vmax: 146 mph (235 km/h) (click images for a larger view)
-
After attending my presentation on SQL Azure Data Sync, my DBA was a little disappointed when I mentioned that SQL Azure Data Sync does not ...
-
Photo: Diane Edwardson, June 15, 2012. This may be the last photo of Red Tailed Hawk Baby #4 in the nest. (Click on photos to enlarge.)...
-
V8 / 4.700 cc / 700 PS / 627 lb/ft (850 Nm) / Vmax: 230 mph 370 km/h (click images for a larger view)
-
Come race at Bud's HO in Cortlandt Manor New York during a Carrera Race Day event Sunday August 15th . Prizes, food and naturally... ra...
-
Photo: Diane Edwardson, September 23, 2011, 6:26 PM. A giant spider dropped from the clouds on Corralitas Drive. (Click on photo to enlar...
No comments:
Post a Comment