Welcome to Microsoft .NET Framework 3.0 Community (NetFx3)

The .NET Framework is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.

Learn More...

WF Community Bloggers

FaultHandlerActivity and workflow persistence

I was just working on an issue reported against the SQL Server Compact Workflow Persistence Service I released some time ago. It turns that if you are using workflow persistence your workflow will actually be persisted to the store when an exception is caught. Now in itself not a big problem as your whole workflow needs to be serializable anyway. Except this time where is an additional exception object and when the exception itself cannot be serialized this brings the whole workflow down. In fact it brings more that just the workflow as the whole workflow runtime crashes, not good The culprit in this case was a SqlCeException which is not serializable! Don't worry about the more common SqlException because that is perfectly ok. Still something to double check as these exceptions are, by their very nature, the exceptional case and therefor less likely to be tested. Enjoy! www.TheProblemSolver.nl http://wiki.WindowsWorkflowFoundation.eu Read More...
Published Monday, July 21, 2008 6:11 AM by The Problem Solver : Workflow
Filed under: , , ,

Comments

No Comments
Anonymous comments are disabled

Copyright © 2007 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us