Previous Next

Thread: Access 32-bits ODBC driver from 64-bit Web Service

Last post 04-17-2008 2:53 AM by qnito. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-15-2008, 2:35 PM

    • qnito
    • Not Ranked
    • Joined on 04-15-2008, 2:26 PM
    • Posts 2
    • qnito

    Access 32-bits ODBC driver from 64-bit Web Service

    I have an access (mdb) database within a linked table connected to a table from Navision Financials 2.01 database server using a 32-bit ODBC driver. I develop a Web Service to publish data from that table. When I publish this Web Service in a Windows 2003 Server x64 (IIS) and try the Web Service an error is produced:

    System.Data.OleDb.OleDbException: ODBC--connection to 'ProyectoCongelados' failed.
       at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
       at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
       at WSProyectoCongelados.NavisionDSTableAdapters.Lín__ventaTableAdapter.Fill(Lín__ventaDataTable dataTable, DateTime Fecha_registro) in C:\Documents and Settings\daparicio\Mis documentos\Visual Studio 2008\Projects\WSProyectoCongelados\WSProyectoCongelados\NavisionDS.Designer.cs:line 1020
       at WSProyectoCongelados.Navision.DameLineasPedidosHoy() in C:\Documents and Settings\daparicio\Mis documentos\Visual Studio 2008\Projects\WSProyectoCongelados\WSProyectoCongelados\WSNavision.asmx.cs:line 26

    The error is not produced when the table is imported to acces database, so I think OLEDB driver cannot acces 32 bit ODBC driver linked to a access database....

     

    anybody can help me?

  • 04-16-2008, 5:33 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 3:28 PM
    • Redmond
    • Posts 387
    • thomad

    Re: Access 32-bits ODBC driver from 64-bit Web Service

    Can you search for Enable32BitAppOnWin64. That is the property you want to set to run IIS 6.0 worker processes in 32-Bit mode.

    Hope this helps

    Thomas Deml
    Senior Program Manager
    Internet Information Services
    Microsoft Corp.
  • 04-17-2008, 2:53 AM In reply to

    • qnito
    • Not Ranked
    • Joined on 04-15-2008, 2:26 PM
    • Posts 2
    • qnito

    Re: Access 32-bits ODBC driver from 64-bit Web Service

    Thanks for the answer, but this property is enabled.

Page 1 of 1 (3 items)
Page view counter