Skip to content
Documentation

SqlClientFactoryCouldNotBeLoadedException Class

This exception indicates that there was an error loading Microsoft.Data.SqlClient causing SqlClientFactory.Instance to be null. This is most likely a deployment issue.

public sealed class SqlClientFactoryCouldNotBeLoadedException : HAKOM.Persistence.Sql.SqlServer.Net.Api.Exceptions.SqlServerException

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 SqlServerException 🡒 SqlClientFactoryCouldNotBeLoadedException

When using UseSqlServer(this IContainer) the SqlClientFactory.Instance may not be null.

This exception is identified by error code HK12026.

SqlClientFactoryCouldNotBeLoadedException.EquivalentHttpStatusCode Property

Section titled “SqlClientFactoryCouldNotBeLoadedException.EquivalentHttpStatusCode Property”

When unhandled within an HTTP request, this exception produces HTTP 500 (Internal Server Error).

protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }

System.Net.HttpStatusCode

© 2026 Volue.Version v0.6.38017 November 2026