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
-
T he most common way to improve the performance of our queries to large tables containing both current and historical data is to use horizon...
-
Photo: Diane Edwardson, February 28, 2012. Who knew we could have protected the wildlands of the Semi Tropic Spiritualists' Tract, just...
-
While the DS3 Cabrio may steal most glances at Citroen’s Paris Auto Show stand, the brand with the double chevron logo will also display a...
-
New Beetle customers in Europe now have the option to fit their cars with two R-Line packages that are based on the top “Sport” version, in...
-
Please click here to download the new 6-page Tango brochure We're printing 50,000 brochures for the Los Angeles Auto Show where Tango(s)...
-
Mom and I remained in that windowless room with its bad art and cheap furniture. As Taxol seeped into her blood stream, I etched each drop i...
-
V12 / 5.980 cc / 630 PS / 738 lb/ft (1.000 Nm) @ 2.300 - 4.300 / biturbo / 0 - 62 mph (100 km/h): 4,0 s / 0 - 124 mph (200 km/h): 11,8 s / ...
-
B een travelling around KL today and here are the parking expenses: RM 2.50 - KLCC RM 7.30 - A building near the US Embassy RM 6.50 - KLCC R...
-
Went back to office yesterday and discovered that almost half of my colleagues have installed Windows 7 Beta, while the remaining half were ...
-
M anaged to return home in one piece. I'm exhausted and braindead from hours of grinding and grilling. True to what I guessed, the exam ...
No comments:
Post a Comment