Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    In a fews OS x64 i get this message error:

                                    DevExpress.Xpo.DB.Exceptions.UnableToOpenDatabaseException: No se pudo abrir la base de datos. Cadena de conexión: 'Provider=Microsoft.Jet.OLEDB.4.0;Mode=Share Deny None;data source=C:\Program Files (x86)\xx\xx\xx.mdb;user id=Admin;password=;'; Error: 'System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
                                       at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
                                       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
                                       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
                                       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
                                       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
                                       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
                                       at System.Data.OleDb.OleDbConnection.Open()
                                       at DevExpress.Xpo.DB.AccessConnectionProvider.CreateDataBase()' ---> System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
                                       at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
                                       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
                                       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
                                       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
                                       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
                                       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
                                       at System.Data.OleDb.OleDbConnection.Open()
                                       at DevExpress.Xpo.DB.AccessConnectionProvider.CreateDataBase()
                                       --- End of inner exception stack trace ---
                                       at DevExpress.Xpo.DB.AccessConnectionProvider.CreateDataBase()
                                       at DevExpress.Xpo.DB.ConnectionProviderSql..ctor(IDbConnection connection, AutoCreateOption autoCreateOption)
                                       at DevExpress.Xpo.DB.AccessConnectionProvider.CreateProviderFromConnection(IDbConnection connection, AutoCreateOption autoCreateOption)
                                       at DevExpress.Xpo.XpoDefault.GetConnectionProvider(String connectionString, AutoCreateOption defaultAutoCreateOption, IDisposable[]& objectsToDisposeOnDisconnect)
                                       at DevExpress.Xpo.XpoDefault.GetDataLayer(String connectionString, XPDictionary dictionary, AutoCreateOption defaultAutoCreateOption, IDisposable[]& objectsToDisposeOnDisconnect)
                                       at DevExpress.Xpo.Session.ConnectOldStyle()
                                       at DevExpress.Xpo.Session.Connect()
                                       at DevExpress.Xpo.Session.get_Dictionary()
                                       at DevExpress.Xpo.Session.GetClassInfo(Type classType)
                                       at DevExpress.Xpo.XPCollection`1..ctor(Session session, CriteriaOperator theCriteria, SortProperty[] sortProperties)
                                    // this is the point where the aplications fails!
                                       at BLL.GestorBase`1.TrobaRegistre(Session session)
                                       at Infoself.frmLogin.Validar()
                                    //
                                       at Infoself.frmLogin.ProcessCmdKey(Message& msg, Keys keyData)
                                       at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
                                       at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
                                       at System.Windows.Forms.TextBoxBase.ProcessCmdKey(Message& msg, Keys keyData)
                                       at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
                                       at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
                                       at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

                                    i have read that if you get this error is becouse you are usin the default session, but i use an UnitofWork to do this:

                                     gTreballador.BuscarTreballadorPerUsuariTreballador(this.txtUsuari.Text, new DevExpress.Xpo.UnitOfWork());

                                    and i get the error. Waht must i do to solve this problem in the x64 OS?

                                    Thank's

                                0

                                Hi Carlos,

                                Thank you for contacting us. I am afraid this issue is not related to DevExpress.
                                The cause of the problem is that the 'Microsoft.Jet.OLEDB.4.0' provider is not supported by 64 bit OS. You can reproduce the same problem if you try to bind to any MS Access database without using XPO. The easiest way to resolve this issue is to change the solution's platform to x86. This can be done though the application's properties. You will need to change the "Platform target" option on the "Build". I also recommend that you review the Odbc connection thread, in which this issue has already been discussed.

                                Thanks,
                                Dennis

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners