HWS error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi!

I have ad hoc workflow with set of actions which dinamicaly add new actions
to activity flow.
Some of actions works, but one which should terminate activity flow fails
with next error message in hat:

Activity ID: {677f66c8-459e-4fd5-adbf-9e8a106ec878}
Instance ID: {677f66c8-459e-4fd5-adbf-9e8a106ec878}
Host: BizTalkServerApplication
Type: Orchestration
Version ID: {a93451f8-1bdb-397a-d4bf-7d0fc3b7cdaa}
Deployment Time: 09.01.2006 18:48:40
State: Started
Start Time: 10.01.2006 16:31:10
End Time:
Duration: 00:00:00
Exit Code: 0x80004005
Error Info: System.Runtime.Serialization.SerializationException: The type
System.Web.Services.Protocols.SoapException in Assembly System.Web.Services,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not
marked as serializable.
at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo
objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream
serializationStream, Object graph, Header[] headers, Boolean fCheck)
at Microsoft.XLANGs.Core.ObjectSerializer._serialize(Object graph,
StringLookup sl)
at
Microsoft.XLANGs.Core.ObjectSerializer.SerializeStateManager(IStateManager
stateMgr, StringLookup lookup)
at Microsoft.XLANGs.Core.Service.Persist(Boolean dehydrate, Context ctx,
Boolean idleRequired, Boolean finalPersist, Boolean bypassCommit, Boolean
terminate)
at Microsoft.XLANGs.Core.LongRunningTransaction.PendingCommit(Boolean
ignore, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean
ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean
ignoreCommit, XMessage msg)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.SendMessage(Int32
iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[]
followCorrelations, Context cxt, Segment seg, ActivityFlags flags)
at ReadGroup.Core.GlobalStateEngine.Termination.segment21(StopConditions
stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp)
System.Runtime.Serialization.SerializationException

Exceptions: Show Tracked Orchestration Exceptions (2).

It didn't run into the action specific logic. What could it mean?
The second question is when I call
hwsService.InterruptAction(new Guid(activityFlowId),
InterruptLevel.ActivityFlow, InterruptType.Rollback, caseOwner);

and like to terminate entire activity flow, I should provide it with first
parameter with activity flow id or root action instance id?



Thanks,

Alex




.