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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

execute a winform application within a seq workflow

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

I have a need to run programmatically, a winform application in the ExecuteCode task in my Sequenctial Workflow.

It's not working. The application doesn't initiate. Moving the same code to a winform application works fine.

Is this possible to work? I thought maybe if I created a new AppDomain in the ExecuteCode it might work. It is required that the GUI on nthe server when running the workflow.. I know it's a bad idea, but I don't have a choice.


It's not a great idea, but it has to be done somehow.



View Complete Post

More Related Resource Links

How to keep my Workflow alive only during the time my client application is running ?

Hi, I want to my workflow do some action when server  lose connection with client and at the same time client get exceptions about it. It is possible to implement some session mechanism or something like that with workflow service ? Regards Marcin

WCF Workflow Service Application - Required Extensions

Hello, I built a WCF Workflow Service App and I built a custom activity that requires an extension in the workflow. In a web app, I'm trying to create a service reference to the WCF workflow service but it says that an extension that is required has not been provided; so how do I consume a service with a required extension? At what point do I supply that extension in an ASP.NET scenario? Thanks. http://linkedin.com/in/brianmains

Remotely access winform application through admin panel

I am going to develop following application but not sure how to do this   Application will run different instances for various clients on different servers.     Each instance will run on different criteria stored in database managed by an admin.     Would like to be able to run this from the admin section.     Maybe using a server command line component and pipin the output into a web based admin? -- Whatever you think is best.     This application will run basically 24-7   Any best solution, idea etc

Auto saving the Winform application

hi,   I am developing a huge win form application, which has lot of win forms, user controls and wizards. For user it will take some time to fill-in all the fields and complete the wizard. I wanted to implement auto saving the application for every 3-4 minutes, this should be done in the background without disturbing the user activity (or thread)..   can anyone help me to implement this? Please share your ideas.   thanks

Restart a Wpf Application from a WinForm

I have a problem with a solution that I'm trying to develope. This is my scenario: I have a VB6 application and I would call from this application some WPF windows. I've used the Interop Form Library to define a WinForm like a bridge from VB6 to WPF. The Interop WinForm exposes the methods to start and shutdown the wpf application. To do that, in the WPF Application I've defined an helper like this: Public Class StartApplicationHelper Public Shared Property IsReady As Boolean = False Public Shared Event NotifyEvent As ValueEnterEventHandler Public Shared Sub Start() If System.Windows.Application.Current Is Nothing Then Try Dim myApp As Application = New Application myApp.ShutdownMode = ShutdownMode.OnExplicitShutdown myApp.InitializeComponent() IsReady= True Catch ex As Exception MessageBox.Show(ex.Message) End Try End If End Sub Public Shared Sub Shutdown() If System.Windows.Application.Current IsNot Nothing Then System.Windows.Application.Current.Shutdown() IsReady = False End If End Sub Public Shared Sub DispatchEvent(ByVal eve As String) If IsReady Then EventDispatcherService.DispatchEvent(eve, New EventDispatcherDataChildWin(String.Empty, Nothing, Nothing, False)) End Sub Public Shared Sub DispatchResult(ByVal

Any way to execute a workflow when a caml query returns zero items?

Lets say I have a list with a status column and I want to execute a workflow when all items in the list have a status of complete. I basically want to execute a workflow when the caml query looking for non-complete statuses returns zero rows. Can I do this with SPD or are there any 3rd party tools for this? I'm thinking of writing one if there are not.

Need to execute a VBScript from my C# web application

Hi All, I need to execute a VB script file from asp.net web application. The input parameter for the VB script file shud be from my webpage. Please guide me on this to proceed further. If needed i can post you the VB script code. Advance thanks for all on this...

Book to learn and Develop enterprise application using InfoPath with workflow in MOSS 2007

Hi all, I'm new to infopath forms and i dont find much articles to develop enterprise application (I'm coding for an ERP module). I have sys environement of MOSS 2007, windows 2008 (64 bit), MS SQL 2008  Though it is easy to design and publish form to a site,  devloping the form with more business rules and validation seems to be vague for me. So please refer a good book to find the deveopment procedures to master Infopath with workflow integration. it is quite urgent. Thanks Gomathi Sha   sharepoint development

WCF Membership Authentication and Winform Client Application Services

I am needing more validation of what I am doing versus solving a problem. I have a winforms application that uses Client Application Services to validate a user against a customer membership provider all over SSL.  This works fine.  My winforms application validates correctly. The winforms application uses WCF to call services that are installed on the same IIS server that is providing the membership services for the Client Application Services.  The WCF services use wsHTTP binding, transport security, username credentials, and validate against the same membership provider as the Client Application Services. It appears that although the service and Client Application Services are at the same URL, they do not share credentials between them.  Ideally, once I log into Client Application Services, any calls to a WCF service at that location would be automatically authenticated.  However, this is not true.  I have to pass the username and password into the credentials for the WCF service.  This works as expected where the username and password are validated prior to allowing a service call.  On subsequent services calls, it does not validate again since it has established the secure channel. So, does this sound like the best approach?  Is there a way to pass credentials from the Client Application Services to WCF automatically?  I

Workflow project compilation fails with error 348: Compilation failed. Cannot execute a program.

Hi, I am trying to build a workflow project on a PC and I am getting the "error 348: Compilation failed. Cannot execute a program." error. This project is part of a bigger solution and it used to build just fine on my PC. Also, the project and the solution build OK on several other computers. I am sure that the problem is something on my PC. 1. I am not sure what changed to make the project start failing. 2. I tried to delete the project, source and all folders from the disk and sync to the source control again 3. Re-installed the .NET 3.5 framework 4. Uninstalled Visual Studio 2008, deleted the visual studio folder under program files, and reinstalled VS 2008 5. I noticed the the file referenced in the error "...Temp\8sl_helt.cmdline" does not exist under the Temp folder. An empty folder called "8sl_helt"however is created, but there is no file with the cmdline extension. I turned up the output log to "diagnostics", this is the output generated when the error happens. Have anybody seen this? Done building target "_ComputeNonExistentFileProperty" in project "QCReviewWorkflowLibrary.csproj". Target "CreateWorkflowManifestResourceNames" skipped. Previously built successfully. Target "WorkflowCompilation" in file "C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.T

Updating Windows XP to execute a WPF application

Hi, I developed a WPF 3.5 application on my Vista workstation. But it will not load on my friends XP workstation. He did not keep it up-to-date. So, what MS update patches do he needs? Thanks, King

VB WCF Workflow Service Application - WcfTestClient.exe different to C# in VS2010



I was following the simple introduction to WWF at http://msdn.microsoft.com/en-us/netframework/ff802403.aspx and I've noticed that a new C# WCF Workflow Service Application project created will then compile and run WcfTestClient.exe.  If I create the VB Version of that same project I get a Browser web page, not the WCF client. Is this a bug in the VS2010 VB bits?  How do I change the project to correctly execute WcfTestClient.exe manually in my VB Project?

Jamie Clayton http://www.jenasysdesign.com.au

Why did my workflow execute twice the same instance?



I'd like to understand why is happening this. I'm designing a workflow in SPD, and the same workflow run twice!

Look that "Workflow Completed" is presented twice in the Workflow History.

What is happening? I made some wrong configuration?

I'm trying to update some fields in a list after item update (the workflow A is started after item update), so to avoid loops I created an auxiliary list:

On item update in List A it is started the workflow A that creates an item for each operation in the auxiliary list that starts an workflow B on item creation to update the item in list A...

When the Workflow B tries to update the item, the workflow A is started again, but I added a condition: if there is an item in auxiliary list so this workflow had already executed then the item in auxiliaty list is deleted and worflow stopped. But it didn't stop and it run again as you can see in history:


04/10/2010 08:59 Comment

Passing parameters of type List<> from a web application to the Receive activity of a workflow servi



I have a Recieve activity with the following parameters in the Content property.  Using generic parameter names here:

- parameter1 of type Object1 assigned to Parameter1 variable

- parameter2 of type List<Object2> assigned to Parameter2 variable.  Note - default value of Parameter2 variable = New List(Of Object2)()

- parameter3 of type Object3 assigned to Parameter3 variable

In my web application, I create a service reference and create a client as such:


SomeWFServiceClient client = null


 client = new
 List<Object2> listOfObject2 = new
 List<Object2> { new
 Object2 {Id=1, Name="SomeName"
, Type="Customer"
 }, };

client.ProcessSomething(Object1, listOfObject2, Object3);


I have a breakpoint at the Receive activity.  When I look at the values that get assigned to the Receive activity parameters, I see that parameter1 and parameter3 ge

use the default sql services in a console sequential workflow application


Hello all,

I have configured my console workflow application to use the default sql service. However, when I run it in VS2008, it generates a TypeLoadException:

"Can not load type "System.Workflow.Runtime.Hosting from assembly System.Workflow.Runtime, Version=3.0.0000.0, Culture=neutral, PublicKeyToken=xxx"

So, my concern is

  1. How to configure a workflow application to use the default sql service?
  2. Are there any requirements for SQL version? Is there any settings we need to configure in SQL server?

Some tips

  1. my current app.config file looks like this:
    <?xml version="1.0" encoding="utf-8" ?>

Specifying Where A Service Reference Points In A WinForm Application


I need the actual service reference to the wcf object to be dynamic.  How can I switch between servers (server1, server2) with the same exact signatures and data contracts?


Right now I have to right click and add service reference.  I want to know how I can change the service reference to point to server 1 or server 2 at runtime

Execute a custom workflow after a out of box the workflow

Does anyone know how to trigger a custom workflow after a out of the box workflow (for example, approval workflow has been approved or rejected).  

The only solutions I can think of at the moment are -

a) Complete custom workflow does everthing
b) Start both workflows on item creation, the custom workflow then keeps checking after x mins or x hours to see the status of the approval workflow? 

I was hoping that there might be a way to listen on an event of the approval workflow within the out of the box workflow.  Any ideas appreciated I cannot seem to find any history of anyone trying to do this.
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