Azure durable function exception No valid DurableTask client target was registered
10:11 25 Dec 2025

I created an isolated Azure durable function. When trying to invoke a custom status endpoint I created which receives a DurableTaskClient as parameter to the constructor, I got this Exception:

System.InvalidOperationException: No valid DurableTask client target was registered. Ensure a valid client has been configured via 'UseBuildTarget(Type target)'. An example of a valid client is '.UseGrpc()'

I don't even use grpc at all.

This is my program.cs

var host = new HostBuilder()
    .ConfigureFunctionsWebApplication()
    .ConfigureServices(services =>
    {
        // Specify the required 'version' argument for UseDefaultVersion
        services.AddDurableTaskClient();
    })
    .Build();

host.Run();
azure azure-functions azure-durable-functions