Windows Workflow Foundation 3


Unable to Start Runtime


 
I just downloaded .NET Framework 3.0 and Visual Studio 2005 Extensions for Windows Workflow Foundation , then I installed Samples from http://wf.netfx3.com/, when i ran the HelloWorld example, which is lihe this,
 
namespace HelloWorld
{
class Program
{
static AutoResetEvent waitHandle = new AutoResetEvent(false);
static void Main(string[] args)
{
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
workflowRuntime.StartRuntime();
workflowRuntime.WorkflowCompleted += OnWorkflowCompleted;
Type type = typeof(HelloWorld.Workflow1);
workflowRuntime.CreateWorkflow(type).Start();
waitHandle.WaitOne();
workflowRuntime.StopRuntime();
Console.WriteLine("Press enter to exit");
Console.ReadLine();
}
static void OnWorkflowCompleted(object sender, WorkflowCompletedEventArgs e)
{
waitHandle.Set();
}
}
}
 
 
I get an exception when the compiler is running this line of code
 
workflowRuntime.StartRuntime();
 
Exception:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.
 
Please help me it is getting me no where.
 
can you try the following article and reinstall windows workflow foundation again?
 
http://support.microsoft.com/kb/937213
Do you have the callstack? That might help identify the cause.
Below is the call stack, i think i have identified the problem, this is due to the fact that the my system has problem accessing the performance counters installed, now can i disable this feature(i.e. WF not accessing the Perfcounters) or do you know a way to restore all performance counters in my Windows XP SP2 system.
 
 
 
 
  mscorlib.dll!System.Number.StringToNumber(string str, System.Globalization.NumberStyles options, ref System.Number.NumberBuffer number, System.Globalization.NumberFormatInfo info, bool parseDecimal) + 0x108 bytes   mscorlib.dll!System.Number.ParseInt32(string s, System.Globalization.NumberStyles style = AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign, System.Globalization.NumberFormatInfo info) + 0x67 bytes   mscorlib.dll!int.Parse(string s, System.IFormatProvider provider) + 0x17 bytes   System.dll!System.Diagnostics.PerformanceCounterLib.GetStringTable(bool isHelp) + 0x1d5 bytes   System.dll!System.Diagnostics.PerformanceCounterLib.NameTable.get() + 0x42 bytes   System.dll!System.Diagnostics.PerformanceCounterLib.CategoryTable.get() + 0x27f bytes   System.dll!System.Diagnostics.PerformanceCounterLib.CategoryExists(string machine = ".", string category = "Windows Workflow Foundation 3.0.0.0") + 0x42 bytes   System.dll!System.Diagnostics.PerformanceCounterCategory.Exists(string categoryName, string machineName) + 0x7e bytes   System.dll!System.Diagnostics.PerformanceCounterCategory.Exists(string categoryName) + 0xa bytes   System.Workflow.Runtime.dll!System.Workflow.Runtime.PerformanceCounterManager.SetInstanceName(string instanceName) + 0xe2 bytes   System.Workflow.Runtime.dll!System.Workflow.Runtime.WorkflowRuntime.StartRuntime() + 0x275 bytes > HelloWorld.exe!HelloWorld.Program.Main(string[] args = {Dimensions:[0]}) Line 38 + 0x9 bytes C#
Performance counters should be set up as part of the normal WF install process. Have you tried uninstalling and reinstalling .Net 3.0 framework?
Yep i have uninstalled VS 2005 extensions of WF and .NET 3.0 Framework, then re installed first .NET 3.0 and VS 2005 extensions, but with no success. 
Were you logged on as an administrator when you re-installed everything?
Yes I always perform such tasks with Administrative privilege.
Can you see the Workflow Perfromance counters using Perfmon.exe?  Can you see any other performance counters other than Workflow Performance counters?
 
When you open Perfmon.exe,  did you see anything in the "performance logs and alerts" colomn?
Yes i can see
1. Pages Per Sec
2. Avg. Disk Queue Length
3. % Processor Time
 
And i am able to add other counters in the list.
 
The Trace Logs and Alerts are empty.
 
In counter logs there is a System Overview counter log which is set to the file path C:\PerfLogs\System_Overview.blg
 
 
 
can you try the following article and reinstall windows workflow foundation again?
 
http://support.microsoft.com/kb/937213

Related Links

When do activities CANCEL and How do i force activities to cancel state?
Windows workflow 4.0 persistent issues
Windows Workflow 4
help needed in state machine workflow in asp.net
About the Role in WWF
Need suggestion of Workflow implementation
Invoking workflow from windows form
Tracking by objects
Sample unit testing project for a code activity
How to display the provider type summary in RuleSetDialog
Windows WF3.0 - get activity information from TrackingRecord object
Workflow Rules - Chaining for Indexers
WCSF PageFlow
front end
Dynamic Workflow Creation
ApplyworkflowChanges takes long time and some time crashes the application.

Categories

MSDN
Visual Studio Languages
Windows Phone Dev Center
Apps for Office and Sh...
Data Platform Development
Microsoft Sync Framework
Windows Server
Bing
Lync Server
Silverlight
Expression
Microsoft Azure
Archived Forums Visual...
Open source Developmen...
Forums Redesign - Q&A ...
Visual F#
Tools for Apache Cordova
Register and Manage Ac...
Developing Universal W...
Microsoft Message Queu...
Network Monitor
User Interface develop...
Windows Filtering Plat...
Windows Hardware Testi...
General Office Develop...
SharePoint 2010 - Gene...
SharePoint 2010 - Deve...
SharePoint Legacy Vers...
SharePoint Legacy Vers...
Service Bus
Azure Virtual Machines
Microsoft Azure Site R...
Azure API Management
Azure Scripting and Co...
Azure CDN
Azure Data Factory
Azure Batch
Azure Security Center
Azure IoT Hub
Azure Functions
Azure Data Lake Analyt...
Azure Analysis Services
Azure Blockchain
Windows Presentation F...
Team Foundation Server...
Team Foundation Server...
Visual FoxPro General
BizTalk Server RFID
ADO.NET Managed Providers
WCF Data Services
Microsoft Live Labs Volta
Microsoft Device Emulator
Windows Mobile Develop...
Visual Studio Smart De...
SQL Server SMO/DMO
SQL Server Replication
SQL Service Broker
Power Pivot
SQL Server Manageability
Windows Embedded 8 Sta...
Standard 2009: Compone...
Standard 7: Embedded E...
SQL Server 2012 Setup ...
SQL Server 2012 Analys...
SQL Server 2012 SQL To...
Windows Forms Data Con...
SDK for Home Server 20...
Windows Live Messenger...
Windows Live ID: Devel...
CRM Deployment
CRM Development
Orchard –Discussions
App Linking
Speech Service for Dev...
Bing Maps General
Bing Maps REST, SOAP, ...
Bing Maps for Windows ...
Exchange Server Develo...
Performance Profiling ...
PivotViewer Control wi...
Customer Care Framework
Surface Application De...
Visual Studio Report C...
Retired SharePoint Acc...
.NET Platform Architec...
Acropolis
Building Development a...
Building Windows Store...
Building Windows Store...
Casablanca
Commerce Server 2002 a...
Crystal Reports for Vi...
Developer Documentatio...
HD DVD Interactivity A...
Face Tracking – Kinect...
ISV Community Days
MS-Build, Multi-Target...
Office Development wit...
patterns & practices: ...
Phoenix
Project Codename:  Jasper
Search Server: Develop...
Search Server: Report ...
Small Business Applica...
Software Transactional...
SyncFx - Feedback [Rea...
SQL Azure Labs Support
SQL Creation
Team Foundation Server...
Team Foundation Server...
Transactions Programming
Visual C# Express 2008...
Visual C++ Express 200...
Visual Studio LightSwi...
WCF Data Services (Pre...
Windows MultiPoint Mou...
Building Windows Store...
Expression Blend for W...
Reporting
Windows Phone Preview ...
Windows Phone Preview SDK
Azure N-Series Virtual...
Skype Web SDK
Maps In Windows - APIs
Microsoft R Server

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile