Back to Devexpress

UnableToOpenDatabaseException Class

corelibraries-devexpress-dot-xpo-dot-db-dot-exceptions-be274439.md

latest1.5 KB
Original Source

UnableToOpenDatabaseException Class

An exception that is thrown when a database either cannot be created or opened.

Namespace : DevExpress.Xpo.DB.Exceptions

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public class UnableToOpenDatabaseException :
    Exception
vb
Public Class UnableToOpenDatabaseException
    Inherits Exception

Remarks

This exception is raised when a database either cannot be opened or created.

Solution:

  • check the connection string used to access the database;

  • check the database exists and is not corrupted;

  • check the IDataStore.AutoCreateOption option to verify that a database can be created;

Inheritance

Object Exception UnableToOpenDatabaseException

See Also

UnableToOpenDatabaseException Members

DevExpress.Xpo.DB.Exceptions Namespace