Windows Workflow Foundation 3


ApplyworkflowChanges takes long time and some time crashes the application.


Hi,
I am running a workflow based job for 100's of times. For every cycle I am building the workflow with approx 1000 activities. When I can ApplyWorkflowChanges() it takes 68 secs. But When I run the application from Visual Studio it takes more then 10 minutes.
But both the cases I am running in release mode.
In addition, after running of 60 to 70 cycles all the time my application is crashing inside ApplyWorkFlowchanges() method. Inside visual studio output window, I am getting error code as 0x01 (Some .NET internal error). So what is causing the application
crash.
workflowInstance = WorkflowManager.Instance.WorkflowRuntime.CreateWorkflow(typeof(MyDynamicWorkflow));
Activity objRootComposite = workflowInstance.GetWorkflowDefinition();
WorkflowChanges wf = new WorkflowChanges(objRootComposite);
// setting the active workflow instance to the Manager.
WorkflowManager.Instance.ActiveWorkflowInstance = workflowInstance;
// Add the activity associated with "this" agent
wf.TransientWorkflow.Activities.Add(_activityAgentWorkflowParent);
//some other activities are added.
workflowInstance.ApplyWorkflowChanges(wf); <--- My Application crashing here.
Thanks in advance.
Vishwa Mohan

Related Links

Within VS2008, can't drill down into a workflow without checking it out
SQLTrackingService tracks incorrect WorkflowInstanceEvent order?
XAML Workflows, Property Bindings and Conditions sample
Tracking query timeouts
Insert activity during PreFilterProperties
Passing data from Activity to Activity in XAML Workflows
Problem with x:Class and CreateWorkflow
Activity property resets back to default inside while activity
Designer does not maintain scroll position returning back from eventdrivenactivity to root designer surface in WF 3
InvokeWorkflow inside ReceiveActivity does not start async
stop runnign an istance of a work flow
WorkFlow will not start. Stuck on workflowRuntime.CreateWorkflow?
Is there the ability for business users to modify the workflow?
How to: Activity Data Bind a collection object, not it's contents.
Problems with Ownership, Timers etc
CustomPersistedService

Categories

MSDN
Microsoft Robotics
Development
Visio 2010
Archived Forums X-Z
Internet of Things
Software Entwicklung f...
Announcements for all ...
Visual Studio Setup an...
General Windows Deskto...
Media Foundation Devel...
Microsoft Message Queu...
Application Security f...
Windows Desktop Debugging
Windows Filtering Plat...
Windows Desktop Perfmo...
Windows Desktop Web Se...
Windows Desktop Winsoc...
Hardware Development B...
Developing Apps for Sh...
SharePoint Legacy Vers...
Azure CDN
Azure Log Analytics
StorSimple
Azure App Service - AP...
Cognitive Services
Azure IoT Hub
Architecture General
BizTalk Server Adapter...
JScript Native
Internet Explorer Exte...
Visual Basic for Appli...
Training and Certifica...
Data Mining
SQL Server XML
SQL Server High Availa...
SQL Server 2012 Integr...
Server Virtualization
Live Connect (Archived)
Windows Live General: ...
Windows Live ID: Devel...
Windows Live Writer: D...
MSDN Magazine
Project Server - Setup...
Bing Ads API: Development
Silverlight 4
Programming Silverligh...
Designing with Silverl...
Expression Design
Expression Encoder
Windows Performance To...
Reference Source Serve...
Visual Studio Report C...
Retired SharePoint Bus...
Retired SharePoint Soc...
Building Development a...
Casablanca
Commerce Server 2002 a...
Direct3D 10
DNS and Traffic Manager
LINQ to SQL (Pre-Release)
Microsoft adCenter: De...
Model-Based Testing wi...
Parallel Computing Gen...
Project Codename:  Jasper
POS for .NET
Server Core Developers
Surface Application De...
SyncFx - Microsoft Syn...
SQL Server 2014 SQL To...
SQL Server 2014 Self-S...
SQL Server 2014 Setup ...
Visual Basic Interop a...
Visual C# IDE
Visual J# General (Ret...
Visual Studio Code Ana...
Visual Studio WPF/SL D...
Web Sandbox - Exploits
Building Windows Store...
Building Windows Store...
Expression Blend for W...
.NET Native Preview
Microsoft Graph

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile