Results 1 to 2 of 2

Thread: ODBC error when running on Vista

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    ODBC error when running on Vista

    Hey guys, I have a program that uses ODBC because that is the only thing that will open Dbase files with a different extension than ".dbf", and it runs fine on XP, but when I install it on Vista I get this huge error...
    Code:
    System.Data.Odbc.OdbcException: ERROR [IM001] [Microsoft][ODBC Driver Manager] Driver does not support this function
    
       at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
    
       at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
    
       at System.Data.Odbc.OdbcConnectionFactory.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.Odbc.OdbcConnection.Open()
    
       at WindowsApplication1.MainForm.tmrRunScan_Tick(Object sender, EventArgs e)
    
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
    
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Is there any possible way to overcome this issue, or can my program just not run on Vista?

    Thanks!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ODBC error when running on Vista

    Are you running the program "As Administrator"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width