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
-
Most developers when developing Windows Communication Foundation (WCF) services, will take security for granted and deploy their web service...
-
I have just gotten a MacBook Pro for work and like all the other notebooks before it, the first thing I would do is to install Windows Serve...
-
Developing an enterprise layered application can be a daunting task especially when the layered samples provided, contains a barrage of Visu...
-
While working on a new ASP.NET MVC layer sample with SignalR, I have constantly encountered the following error when I tried to access the ...
-
Over the years, I have collected a number of frequently asked questions while working on Layered Architecture Solution Guidance (LASG) and ...
-
Was working on a new layered architecture sample that uses ASP.NET SignalR and found out that it couldn't serialize the enums proper...
-
When deploying applications to The Cloud (on Windows Azure), we have a choice in storing our data in Windows Azure Storage or SQL Azure. For...
-
We take our duties as activists working to "Save the Denburn Dual Carriageway!" very seriously. ('Like' us on FaceBook , ...
-
Today is the last day of Tech.Ed. *So Sad* Went there early hoping to attend the Microsoft Business Solutions session but it was knocked off...
-
"A Leader lights the fire in the hearts of people, a Manager lights the fire under the people". My company conducted a Leadership ...
No comments:
Post a Comment