AnsweredAssumed Answered

Cannot get schema via ADO.NET in 64 bit application

Question asked by sadamu on Apr 22, 2015

Summary

Cannot get schema via ADO.NET in 64 bit application

Product

FileMaker Pro

Version

13

Operating system version

windows 8.1 64bit

Description of the issue

could not get localhost database schema via ado.net when using c#

Steps to reproduce the problem

the follow code(the method GetSchema) will throw an exception when run at 64 bit , but in 32 bit is ok

P.S. i installed both 64 bit and 32 bit odbc driver



var connectionString = @"Driver={FileMaker ODBC};database=test;server=localhost;uid=Admin";

            using (OdbcConnection con = new OdbcConnection(connectionString))
            {
                con.Open();
                var tables = con.GetSchema(OdbcMetaDataCollectionNames.Tables);
            }

Actual result

i get an exception without any error message,please check the exception pic

%E7%84%A1%E9%A1%8C.png

Outcomes