Skip to main content
A newer version of this page is available. .

CannotFindAppropriateConnectionProviderException Class

An exception that is thrown when an appropriate connection provider is not found.

Namespace: DevExpress.Xpo.Exceptions

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public class CannotFindAppropriateConnectionProviderException :
    Exception

Remarks

This exception is thrown when a connection provider is not found that can process a specific connection string or IDbConnection object.

Solution:

- ensure that the connection string or connection object refers to a valid connection provider;

- if using a custom connection provider (not shipped with XPO) you should register it before it can be invoked. The provider must contain a static constructor that performs the registration and a static Register method (see the implementation of existing connection providers) .

Inheritance

Object
Exception
CannotFindAppropriateConnectionProviderException
See Also