SqlClientFactoryCouldNotBeLoadedException Class
HAKOM.Persistence.Sql.SqlServer.Net.Api.Exceptions
Section titled “HAKOM.Persistence.Sql.SqlServer.Net.Api.Exceptions”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.SqlServerExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 SqlServerException 🡒 SqlClientFactoryCouldNotBeLoadedException
Remarks
Section titled “Remarks”When using UseSqlServer(this IContainer) the SqlClientFactory.Instance may not be null.
This exception is identified by error code HK12026.
Properties
Section titled “Properties”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; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!