MySQL Forums
Forum List  »  Connector/ODBC

Win7 32bit programmatic DSN creation causing Exception
Posted by: Nathaniel Madura
Date: August 02, 2016 11:12AM

I am trying to add a DSN from a C#.Net application.

I am using the following,
SQLConfigDataSource from ODBCCP32.dll

When calling, I receive a System.AccessViolationException

I don't receive this exception when using a different driver (such as "Sql Server")

Also worth noting, is that if I remove myodbc5S.* from the mysql connector directory this exception no longer happens and the call executes and returns an odbc error:
ODBC Error <ODBC_ERROR_LOAD_LIB_FAILED>: The setup routines for the MySQL ODBC 5.3 ANSI Driver ODBC driver could not be loaded due to system error code 126: The specified module could not be found. (C:\VPD3\VPD3 Database\5.3.6-win32\myodbc5S.dll).

From what I can tell the myodbc5s.* files support the GUI part of making a DSN connection.

Is there a way to turn this feature off? Has anyone else had a problem with this?

Options: ReplyQuote


Subject
Written By
Posted
Win7 32bit programmatic DSN creation causing Exception
August 02, 2016 11:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.