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
-
Volvo Art Car Splattered to Perfection. I don't know maybe they missed a spot:)
-
A little while ago, we wrote about the risible and disturbing idea of a bicycle-sharing scheme for Aberdeen "City and Shire" as s...
-
Scott's blog drawthrough jr. Scott on concetships and bots. More images from DRIVE. Some of the nicest concept vehicle art I've ...
-
Photo: Diane Edwardson, November 21, 2011. You can still walk around the vernal pools where the canyon opens to the meadow of the Red Car P...
-
Longtime Porsche tuning brand Gemballa is calling owners of the latest generation of the 911 Cabriolet S (codenamed 991) to take a look at ...
-
V8 / 5.461 cc / 525 PS / 515 ft/lb (700 Nm) @ 1.750 - 5.000 / twin turbo / 0 - 62 mph (100 km/h): 4,4 s / Vmax: 155 mph (250 km/h) AMG Per...
-
V12 / 5.980 cc / 555 PS / biturbo (click images for a larger view)
-
V12 / 3.929 cc / 365 PS / 300 ft/lb (407 Nm) @ 5.500 / 0 - 62 mph (100 km/h): 6,0 s / Vmax: 162 mph (261 km/h) (click images for a larger ...
No comments:
Post a Comment