PDA

View Full Version : Workflow Foundation (WF) error related to performance counters


petersunnet
04-04-2008, 10:16 AM
Is Workflow Foundation (WF)supported?

When calling workflowRuntime.StartRuntime(), I gotthis error:


Cannot continue the current operation, the performance counters memory mapping has been corrupted.

I found the following online and tried it, but it didn't work for me.
http://msdn2.microsoft.com/en-gb/library/ms734511.aspx

Did anybody make WF work? Anyspecific changes needed?

Thanks.

wisemx
04-05-2008, 01:16 AM
Hi,
Did you make any headway with this?
Haven't done anything with it yet myself but thought you might find this helpful:
http://www.codeplex.com/workflowmanager
Salute,
Mark

Aristotle
04-07-2008, 06:01 AM
I think the solution is to turn off performance counters in the app, since I doubt you'll be able to use this feature anyway because it probably requires administrative priviledges.

http://msdn2.microsoft.com/en-gb/library/ms734511.aspx








Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

petersunnet
04-08-2008, 04:56 AM
Thanks Mark and Aristotle.

I tried turning off perf counters again using a different approach and it was a success.

FlyTheBlueSky
05-29-2008, 04:04 AM
For the benefit of all, could you share with us how you turned the performance counters off?
I am running into the same problem, and the MSDN web.config method isn't working.

Thanks.

FlyTheBlueSky
05-29-2008, 05:07 AM
I figured it out. Here's a working config that disables performance counters and enables persistence:

web.config:
[quote]

<configuration>
....
<configSections>
....
<sectionname='PersistentWorkflowConfig'type='System .Workflow.Runtime.Configuration.WorkflowRuntimeSec tion,System.Workflow.Runtime,Version=3.0.00000.0,C ulture=neutral,PublicKeyToken=31bf3856ad364e35'/>
</configSections>
</configuration>
....
<PersistentWorkflowConfigEnablePerformanceCounters= 'False'>
<CommonParameters>
<addname='ConnectionString'value='DataSource=sql2k5 01.discountasp.net...###remainderofconnectionstrin g###'/>
</CommonParameters>
<Services>
<addtype='System.Workflow.Runtime.Hosting.SqlWorkfl owPersistenceService,
System.Workflow.Runtime,Version=3.0.00000.0,Cultur e=neutral,PublicKeyToken=31bf3856ad364e35'
UnloadOnIdle='true'/>
</Services>
</PersistentWorkflowConfig>

</CODE>

global.asax:
[quote]

voidApplication_Start(objectsender,EventArgse)
{
WorkflowRuntimeworkflowRuntime=newWorkflowRuntime( 'PersistentWorkflowConfig');
workflowRuntime.StartRuntime();
Application['WorkflowRuntime']=workflowRuntime;
}

</CODE>

wisemx
05-29-2008, 11:11 AM
Really appreciate you following up on this one, thanks a bunch. http://community.discountasp.net/emoticons/wink.gif