QuickStarts\PageFlow -> CustomersApprovalPageFlow.cs throws exception

Topics: User Forum
Jan 15, 2007 at 12:20 PM
I got this error:

Error loading workflow.

The type initializer for "Microsoft.Practices.PageFlow.WorkflowFoundation.Activities.PageFlow" threw an exception.

Any ideas why this happens? Has been like this for the last releases.

Jan 15, 2007 at 1:21 PM
I saw this too for the first time yesterday. At the time, though, I did have the Page Flow app block assemblies open in .NET Reflector, and as it was the static constructor that was failing I thought this could be related...

I closed Reflector and restarted Visual Studio and it seemed to correct the issue.

No amount of cleans, builds, or rebuilds sorted it before I resorted to a VS restart. I also didn't dig into what happens in this initialiser - so little time, so many tasks :-)

Anyone any suggestions?
Jan 15, 2007 at 1:22 PM
After re-reading that noticed neither of us mentioned that this message is displayed in place of the WF designer in Visual Studio... I assume yours was the same Benny?

Jan 15, 2007 at 2:14 PM
In det pageflow designer here to.
Jan 15, 2007 at 5:11 PM
Restart fixed the problem.
Jan 23, 2007 at 5:12 AM
I also get this problem. Anyone found a fix yet?
Jan 24, 2007 at 9:57 PM
It seems that a full rebuild of the solution usually fixes this. If the rebuild fails follow it with a restart of VS.net. Still dont know what the cause is.
Feb 2, 2007 at 4:51 AM
similar post here: http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=3964