# DurableTaskVersionException

Package: [Microsoft.Orleans.Durable.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/) 10.0.0-alpha.1

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskVersionException.cs#L16)

```csharp
[Orleans.Alias(Orleans.Durable.Tasks.DurableTaskVersionException)]
public sealed class DurableTaskVersionException : Exception
```

Represents a durable task whose recorded version of a change isn't one which the running code supports, because the code raised the change's minimum supported version, or because older code replays an execution which newer code recorded.

## Remarks

[DurableTask](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletask/) stalls such an execution: the host cancels the attempt for [DurableTaskAttemptCancellationReason](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskattemptcancellationreason/), and the attempt's [DurableTaskAttemptCanceledException](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskattemptcanceledexception/) carries this exception as its inner exception. The host discards the attempt's result and keeps the task pending. A later activation, typically on a deployment whose code supports the recorded version, replays the task. Abort the task to end it instead.

## Constructors

- [DurableTaskVersionException(TaskId, string, int, int, int)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/constructors/constructor-orleans-durable-tasks-taskid-string-int-int-int-de846a38/)

## Properties

- [MaxSupported](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/properties/maxsupported-0c6d2060/)
- [MinSupported](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/properties/minsupported-e7221206/)
- [Name](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/properties/name-06719aef/)
- [TaskId](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/properties/taskid-67d1cc1b/)
- [Version](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/properties/version-5bfd8fa0/)
