.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Pankaj Mishra
alex morco
Imran Ghani
Post New Web Links

Communication between one main workflow and several agent workflows - finding endpoint address of th

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :Windows Application


I have a main workflow service and another "agent" workflow service.  The agent workflow service will be hosted on a bunch of machines, all listening on the same port.  For example, the endpoint addresses of the agent workflow services would be: http://ServerABC:9700/SomeService, http://ServerDEF:9700/SomeService, and so on.

The main workflow service (which is hosted on a separate server) needs to determine at runtime the agent it should talk to.  For example: if the main workflow is passed a server name "ServerABC" as a parameter, it needs to figure out that it has to communicate with the agent on http://ServerABC:9700/SomeService.

The main and agent services are built using the designer. I am using context correlation between the main and the agent workflow services.

How can I set the endpoint address dynamically in the Send activity of the main workflow? 

Thanks in advance.

Current settings:

Below is a portion of the web.config file from the main workflow service.  Note the commented portion.  If I specify it that way, it works because it knows the address of the agent's endpoint. That's alright if the agent is running on only one server.  But I need to find that address at runtime in the main workflow service.


View Complete Post

More Related Resource Links

Workflow Services: Visual Design of Workflows with WCF and WF 4


The .NET Framework 4 makes it easier than ever to implement WCF services using WF. We'll demonstrate just how easy it is by modeling a long-running, durable and instrumented workflow based on a real-world business case without having to write any code.

Leon Welicki

MSDN Magazine May 2010

Foundations: Workflow Services for Local Communication


This month's column describes how to use WCF for communication between a workflow and a host application in Windows Workflow Foundation 3. This knowledge should help developers with their efforts using WF3 and prepare them for WF4, where WCF is the only abstraction over queues (referred to as "bookmarks" in WF4) that ships with the framework.

Matthew Milner

MSDN Magazine November 2009

Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows


This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006

Web Service Workflows: Deploy Distributed Business Processes With Windows Workflow And Web Services


Due to the distributed nature of a business process it makes sense for a workflow to be deployed as a distributed application. See how Windows Workflow and Web Services hold the key.

Israel Hilerio

MSDN Magazine October 2006

Nintex Workflow Error: No workflows are waiting for a BizTalk message [...] No processing has been d



I created a Workflow with Nintex Workflow 2007 (on SharePoint 2007) to send/receive data to BizTalk 2009. It worked fine already. But now I get the following error mesage in the EventViewer:

Nintex Workflow; Build: 11000 (http://ls457/_layouts/nintexworkflow/BiztalkHandler.ashx)
No workflows are waiting for a BizTalk message with message Id of 'GeneralAccessRequest_2010-08-23T15_00_04_44961212B370C554EDFAC41C1201ED6CEFB' on teamsite http://ls457/sites/testapp. No processing has been done.

What could that mean? Any ideas? I definitely changed nothing on the orchestration or BizTalk administration. The BizTalk action sends the data correctly to it's destination (database), but it seems that nintex doesn't receive any return data. I don't think it's a BizTalk problem, because in the BizTalk Message Tracking Database the Message is listet, so it has been sent correctly by BizTalk. But the handler probably has problems to find/receive this message.

Kind regards,


Resuming of workflows from InstanceStore in Workflow 4.0 Release Candidate

Hi,  I am using the WorkflowApplication object to invoke the Workflows. In this type of invokcation, after the workflow persisted,  in case of delay activity, in beta 2 there is no support to autmatic invocation in case of expiry of timers. But in case workflowservicehost the WWF invokes the expired timers workflow instrances automatically.  When I posted the same to forums some time back, I got answer that in the  Release Candidate Mcrosoft will be providing the support of for automatic invocation even the workflows are invoked through the workflow application object.  Now I am using Custom batch job for doing the same. Please let us know about this scenario. If Microsoft provides the support please let me know the process. If there is no automatic invocation support, Can we expect in future?Thanksrajeevkalyan

WCF discovery finds the endpoint but the address is localhost

Hi,   I have a wcf discoverable service called "GetNameService" which is hosted on a PC @ It is hosted with wsHttpBinding and is discoverable thru' UdpEndpoint. I also have a client @ which discovers for such services in the same network. When I ran the client, I am able to discover the service but the end point of the service discovered is having localhost in it. How can this happen, please help me out in this.   Some more information,   App.config used <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation debug="true" /> </system.web> <!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --> <system.serviceModel> <services> <service name="NameService.GetNameService"> <host> <baseAddresses> <add baseAddress = "" /> </baseAddresses> </host> <!-- Service Endpoints --> <!-- Unless fully qualified, address is relative to base address supplied above --> <endpoint address ="" binding="ws

Adding Flexibility to SharePoint 2010 Workflows Using the Windows Workflow Foundation Rules Engine

Learn about Windows Workflow Foundation rules engine capabilities and benefits to automate business logic and processes for workflows in SharePoint 2010 applications.

Using "Transaction activty" in Workflow to update 2 tables - throws "communication with the underlyi


I created a transactionscope over 2 code activities,
Code activity1 opens a connection, fires an insert into a table and closes the connection.
Code actibity2 also opens connection, does a simple insert into same table and closes the connection

I get the following exception:
The 1st code activity runs fine, then the second code activity fails when it tries to open a connection and I get this message "Communication with the underlying transaction manager has failed. "

I have persistence services working properly, I'm able to persist the workflows..which means my MSDTC is configured right, also able to insert data into the tables..but when I use the transactionscope I just get that error whever I open the connection in the second code activity

Am I missing something or this is one of those inbuilt bugs of the "workflowfoundation" bugs like the timer etc?

Create Visual Studio Workflow to send Email from another address


Hello All,

I have a requirement where i need to build a visual studio for sharepoint workflow where i can send email from different address as we have on the code plex like this..

http://spdactivities.codeplex.com/(Send Email Extended - Enhaced version of the OOTB activity. Allows you to specify the sender. Also does not break links in body.)


I need to achieve the same using Visual studio workflow.

I am a new bie to Visual studio workflow.Can anyone point me to any  good article to achieve it.\

Thank you



Communication between 2 WPF windows using TCP Endpoint


I want to first of all apologize because i am totally new with using WCF.

What im trying to do is have 2 WPF windows send objects or whatever back and fourth.

What I have now is a client that has a service reference to my Service Library using TCP

 <endpoint address="net.tcp://localhost:8888/VTService/EvalService"


I also created a host, because this we tutorial told me to, and this host is simply

ServiceHost host = new ServiceHost(typeof(EvalService));


      Console.WriteLine("Eval Service is up and running with the following endpoints.\n");
      foreach (ServiceEndpoint se in host.Description.Endpoints)


With my host running in the background and my client running i can send and receive evals with no problem. Even if i open up 2 of the WPF client i get the messages on both ends. So basically communication is great on the same machine.


I was wondering how to get another machine over the internet to see these

Getting the original endpoint address when request has been sent through url rewrite in IIS



I'm creating a wcf service in .NET 3.5, which I'm hosting in IIS 7.5.

In order to ensure that all calls goes through this specific service, I have set up a rewrite rule in the Url Rewrite module in the IIS to match the wildcard '*', and rewrite the url to something like '/MyService.svc'.

In my wcf service I would like to be able to get the original url of the service call. I have checked the flag "Append query string" in the rewrite rule, but I am unsure how to get the url in my host code.

Anybody able to help me out here?

Thanks in advance

Communication using TCP Endpoint IP troubles help


I want to create a service library and a self hosting console app.

I want to deploy the app in my house with my computer with ip 71.57. XXX.XX but my router gives me 192.168.X.XXX. This is my app.config in my service library.


<?xml version="1.0" encoding="utf-8" ?>
 <compilation debug="true" />

  <binding name="TCPBinding">
   <security mode="None"/>

  <binding name="PipeBinding">
   <security mode="None"/>

  <service behaviorConfiguration="VTService.Service1Behavior"
  <clear />
  <endpoint address="ws" binding="wsHttpBinding" name="WsEndpoint"
   contract="VTService.IEvalService" listenUriMode="Explicit">
   <dns value="192.168.XX.XXX" />
   <certificateReference storeName="My" storeLocation="L

Workflow authorisation with many clients, workflows and users


Hi All,

I can't seem to find any documentation/examples for situations where a WF application has multiple workflows, not instances but types, defined. 

I have a scenario where I have multiple clients (companies if you will) using a WF enabled web application. Each of these clients will have 1 or more workflow types available to them. A user of this client will therefore see a list of available workflows that they can start. Before I go to far down the wrong road I wanted to check with you guys as I don't want to duplicate effort and create tables/procedures that are already available for me to record this information in.

I will have an interface:

[userid typed in textbox here]
[workflow to start selected here[ ^ ]
{start workflow button here}

Finding out who owns the IP-address of a website visitor on a sharepoint hosted website


I am woundering if there is anyone here that can help me by explaining if there is a way to save a visitors IPaddress, and send it to whois service, to see who owns the IPadress, and what organization it belongs to.

At first I was thinking that maby Google Analytics would be the way, but then I started to think. Maybe sharepoint has this functionality buildt-in.

If I have to I can do some programming, but I am not that much of a programmer. However I have found a phrase that might help me with obtaining the IPaddress through ASP. "Request.ServerVariables("REMOTE_ADDR")

But I need pointers on where to put it, and on how to write a script or uses a function in Sharepoint to look up owner and organiziational information, and store it for furthere analsis.

Hope someone can help!

Best Regards

Paul Ottar

invoking other workflow from main workflow dynamically


 Been doing research for a whlie now and while I suspect I passed right by the answer, it wasn't obvious -- so, figured a direct question is best

I have a situation where I have multiple vendors I do business with and the list can change.  I'd like to be able to create a new workflow for each vendor where I want to support custom steps.  Let's say it is placing an order, and I have a default process that involves manual work.

I envisioned a file (say XML) where I can have a name which represents the workflow I want to invoke.

In my main workflow I wanted to have a parallel activity that sent a message to all of the vendor workflows (on my machine) and waited for them all to finish before moving on.

So, my questions

1. What do I need to do to send a message to this vendor specific workflow?  I have it's name and I can build out a URI based on the name.  In other words, how can I make this work

2.  Does this vendor workflow just have to reply to the receive to indicate "I'm done" to the main workflow

Thanks in advance for pointers, etc.


Problem setting endpoint address URL dynamically at runtime in client


I have a WCF web service and clients running on separate windows server 2003 machines. I'm using windows integrated authentication to authenticate the clients. All of the clients and the service are running in appPools in IIS6 as specified active directory users. I have added the service as a service reference to the client project in Visual Studio 2008. This works fine in the development network. To run it in the Production environment I need to change the URL and the UPN at runtime to the production values, but whatever I try it just throws errors? In fact the only thing that worked - but isn't really practical - is when I removed the development service reference and added the production service reference to the project using Visual Studio before deployment. Surely there is some way to change the endpoint at runtime??? I must be missing something simple. Please help! :)

Here is the relevant part of the client endpoint:

         < endpoint address ="http://dev.happyfunland.com.au/FunService.svc" binding ="wsHttpBinding"

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend