This is the stacktrace that was generated:
at System.Environment.get_StackTrace()
at Temporalio.Worker.WorkflowTracingEventListener.OnFrameworkEventWritten(WorkflowInstance instance, EventWrittenEventArgs evt)
at Temporalio.Worker.WorkflowTracingEventListener.OnEventWritten(EventWrittenEventArgs evt)
at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(EventWrittenEventArgs eventCallbackArgs)
at System.Diagnostics.Tracing.EventSource.WriteEventWithRelatedActivityIdCore(Int32 eventId, Guid* relatedActivityId, Int32 eventDataCount, EventData* data)
at System.Diagnostics.Tracing.FrameworkEventSource.WriteEvent(Int32 eventId, Int64 arg1, Int32 arg2, String arg3, Boolean arg4, Int32 arg5, Int32 arg6)
at System.Diagnostics.Tracing.FrameworkEventSource.ThreadTransferSendObj(Object id, Int32 kind, String info, Boolean multiDequeues, Int32 intInfo1, Int32 intInfo2)
at System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
at System.Threading.Timer.Change(Int32 dueTime, Int32 period)
at NLog.Targets.Wrappers.AsyncTargetWrapper.StartLazyWriterThread(Boolean instant)
at NLog.Targets.Wrappers.AsyncTargetWrapper.StartTimerUnlessWriterActive(Boolean instant)
at NLog.Targets.Wrappers.AsyncTargetWrapper.StartLazyWriterTimer()
at NLog.Targets.Wrappers.AsyncTargetWrapper.Write(AsyncLogEventInfo logEvent)
at NLog.Targets.Wrappers.AsyncTargetWrapper.WriteAsyncThreadSafe(AsyncLogEventInfo logEvent)
at NLog.Targets.Target.WriteAsyncLogEvent(AsyncLogEventInfo logEvent)
at NLog.LoggerImpl.WriteToTargetWithFilterChain(Target target, FilterResult result, LogEventInfo logEvent, AsyncContinuation onException)
at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targetsForLevel, LogEventInfo logEvent, LogFactory logFactory)
at NLog.Internal.TargetWithFilterChain.WriteToLoggerTargets(Type loggerType, LogEventInfo logEvent, LogFactory logFactory)
at NLog.Logger.WriteToTargets(Type wrapperType, LogEventInfo logEvent, ITargetWithFilterChain targetsForLevel)
at NLog.Logger.Log(Type wrapperType, LogEventInfo logEvent)
at NLog.Extensions.Logging.NLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Temporalio.Worker.ReplaySafeLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
at Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(ILogger logger, String message, Object[] args)
at InstrumentMicroservice.Command.DataAccess.Temporal.Workflows.DataLoad.MyWorkflow.RunAsync() in C:\LGIM\code\c#\ilid-instrument-command-service\src\InstrumentMicroservice.Command.DataAccess\Temporal\Workflows\DataLoad\MyWorkflow.cs:line 17
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)
at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteEntry()
at Temporalio.Worker.WorkflowInstance.RunOnce(Boolean checkConditions)
at Temporalio.Worker.WorkflowInstance.Activate(WorkflowActivation act)
at Temporalio.Worker.WorkflowWorker.<>c__DisplayClass11_1.<HandleActivationAsync>b__3()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
I got this using this dotnet sample samples-dotnet/src/ActivityHeartbeatingCancellation at 06303cde4888dcbe929170dba51151404687204a · temporalio/samples-dotnet · GitHub
That meaning I copied the workflow and activities directly from the sample without changing anything.