views:

40

answers:

0

I am using this connection string to query some .DBF

   Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\Dbfs;

But if i run the application on IIS (7.5) the connection cannot be opened and i get this

OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Problem solved:

IIS Manager -> Application Pools ->Set Application Pools Defaults -> Enable 32-bit Applications = False=>True