UnableToOpenDatabaseException Class
An exception that is thrown when a database either cannot be created or opened.
Namespace: DevExpress.Xpo.DB.Exceptions
Assembly: DevExpress.Data.v18.1.dll
Declaration
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;
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnableToOpenDatabaseException class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.