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
-
No technical specification available (click images for a larger view)
-
The Message Stick Vehicle Art Car - Via Sacred Oz The message stick vehicle art car is a 1961 Vietnam war era army off road ambulance driven...
-
Cash For Clunkers Art Cars During the recent government "cash for clunkers" program this country witnessed an art car renaissance ...
-
Pontamafrey-Montpascal - Feissons-sur-Isère: 36 miles (58 km) GPS coordinates: N 45°26´7” E 006° 22´32” Open: june - november The height of...
-
A pair of new special edition models equipped with accessories for off-road enthusiasts, the Grand Cherokee Trailhawk and Wrangler Moab, hav...
-
Photo: Diane Edwardson, December 1, 2011. Last night's windstorm knocked down a huge eucalyptus tree on the 5 Freeway onto Riverside Dri...
-
At this year’s 16th annual Moscow International Auto Show, local carmaker AutoVAZ premiered one of its more impressive concepts to date, the...
-
Photo: Diane Edwardson, December 2, 2011. After a day of nervous watching of down power lines sparking spot fires on Lake View Ave. (monito...
-
Porsche came out today with its global sales numbers for the month of August and together confirmed the unveiling of a new model at the rapi...
-
The presentations at Ford's “Go Further” event in Amsterdam continued with the somewhat confusing Transit sub-brand and an array of pas...
No comments:
Post a Comment